Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2010-06-14 01:01:07
Size: 654
Editor: SheenaSmith
Comment: create page, add content (Wed Mar 10 ver; changeset 4428)
Revision 2 as of 2010-06-17 00:31:23
Size: 912
Editor: SheenaSmith
Comment: add content from old wiki
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
Use this function to ^release a specified area as a read/write target^. ??? Use this function to *free an SDL_RWops structure allocated by [[SDL_AllocRW]](). *
Line 16: Line 16:
||'''area'''||^the area being pointed to by an SDL_RWops structure to be freed^ ???|| ||'''area'''||^the SDL_RWops structure to be freed^ ???||
Line 19: Line 19:
*
Line 20: Line 21:
You can add your code example here #include "SDL_rwops.h"

  void dumb_example()
  {
    SDL_RWops *rw=SDL_AllocRW();
    if(rw==NULL) return;

    SDL_FreeRW(rw);
  }
Line 22: Line 31:
*
Line 24: Line 34:
''You can add useful comments here'' *Only use [[SDL_FreeRW]]() on memory allocated by [[SDL_AllocRW]](). Any extra memory allocated during creation of the RWops is not freed by [[SDL_FreeRW]](); the programmer must be responsible for it. *
Line 27: Line 37:
 .[[SDL_AllocRW]] ???  .[[SDL_AllocRW]] *

DRAFT

SDL_FreeRW

Use this function to *free an SDL_RWops structure allocated by SDL_AllocRW(). *

Syntax

void SDL_FreeRW(SDL_RWops* area)

Function Parameters

area

the SDL_RWops structure to be freed ???

Code Examples

*

#include "SDL_rwops.h"

  void dumb_example()
  {
    SDL_RWops *rw=SDL_AllocRW();
    if(rw==NULL) return;

    SDL_FreeRW(rw);
  }

*

Remarks

*Only use SDL_FreeRW() on memory allocated by SDL_AllocRW(). Any extra memory allocated during creation of the RWops is not freed by SDL_FreeRW(); the programmer must be responsible for it. *


CategoryAPI, CategoryIO

None: SDL_FreeRW (last edited 2015-06-20 20:07:06 by PhilippWiesemann)

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