|
Size: 628
Comment: correct typo
|
Size: 601
Comment: Fixed return value text, which was incorrect. Also added example code.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| | |
| Line 14: | Line 13: |
| == Return Value == Returns the total number of logical CPU cores. On CPUs that include technologies such as hyperthreading, the number of logical cores may be more than the number of physical cores. |
|
| Line 15: | Line 16: |
| == Return Value == Returns 0 on success or a negative error code on failure; call [[SDL_GetError]]() for more information. == Code Examples == {{{#!highlight cpp You can add your code example here |
== Code Example == {{{ printf( "Number of logical CPU cores: %d\n", SDL_GetCPUCount() ); |
| Line 22: | Line 20: |
== Remarks == ''You can add useful comments here'' |
|
| Line 27: | Line 21: |
SDL_GetCPUCount
Use this function to return the number of CPU cores available.
Syntax
int SDL_GetCPUCount(void)
Return Value
Returns the total number of logical CPU cores. On CPUs that include technologies such as hyperthreading, the number of logical cores may be more than the number of physical cores.
Code Example
printf( "Number of logical CPU cores: %d\n", SDL_GetCPUCount() );
