Wiki Page Content

Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2010-08-26 06:04:15
Size: 627
Editor: SheenaSmith
Comment: create page, add content (8/23 changeset 4865)
Revision 3 as of 2013-08-07 21:58:49
Size: 598
Editor: Sam Lantinga
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 6: Line 5:
Use this function to swap byte order. Use this function to swap the byte order of a 16-bit value.
Line 16: Line 15:
||'''x'''||the data to be swapped|| ||'''x'''||the value to be swapped||
Line 19: Line 18:
The swapped data. ??? Returns the swapped value.

SDL_Swap16

Use this function to swap the byte order of a 16-bit value.

Syntax

Uint16 SDL_Swap16(Uint16 x)

Function Parameters

x

the value to be swapped

Return Value

Returns the swapped value.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryEndian

None: SDL_Swap16 (last edited 2013-08-07 21:58:49 by Sam Lantinga)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit