annotate .cvsignore @ 1078:e2ef6b7001fd

Patch from Antonio SJ Musumeci: " This code with SDL-1.2.8 and CVS: #include <stdio.h> #include <stdlib.h> #include <SDL.h> int main(int argc, char** argv) { char alphabet[26] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; char buffer_file[27] = {0}; char buffer_mem[27] = {0}; int rv_file; int rv_mem; FILE* file_ptr; SDL_RWops* rwop_file; SDL_RWops* rwop_mem; file_ptr = fopen("./blah", "w"); fwrite(alphabet, 1, sizeof(alphabet), file_ptr); fclose(file_ptr); rwop_mem = SDL_RWFromMem(alphabet, sizeof(alphabet)); rwop_file = SDL_RWFromFile("./blah", "r"); rv_mem = SDL_RWread(rwop_mem , buffer_mem, 5, 6); rv_file = SDL_RWread(rwop_file, buffer_file, 5, 6); printf("From File: %d %s\n" "From Mem: %d %s\n", rv_file, buffer_file, rv_mem, buffer_mem); printf("Seek end of File: %d\n" "Seek end of Mem: %d\n", SDL_RWseek(rwop_file, 0, SEEK_END), SDL_RWseek(rwop_mem , 0, SEEK_END)); SDL_RWclose(rwop_file); SDL_RWclose(rwop_mem); return 0; } Produces this output: From File: 5 ABCDEFGHIJKLMNOPQRSTUVWXYZ From Mem: 5 ABCDEFGHIJKLMNOPQRSTUVWXY Seek end of File: 26 Seek end of Mem: 26 " --ryan.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 24 Jun 2005 12:48:38 +0000
parents 9454950842ae
children d94b080ff6ce
rev   line source
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
1 aclocal.m4
1015
9454950842ae *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1001
diff changeset
2 autom4te*
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
3 config.cache
1015
9454950842ae *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1001
diff changeset
4 config.log
9454950842ae *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1001
diff changeset
5 config.status
9454950842ae *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1001
diff changeset
6 configure
596
475f969e8c01 CVS should ignore files automatically generated by building on MacOS X
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
7 depcomp
1001
70bfe658442c *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 754
diff changeset
8 install-sh
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
9 libtool
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
10 Makefile
1015
9454950842ae *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1001
diff changeset
11 Makefile.in
9454950842ae *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1001
diff changeset
12 missing
9454950842ae *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1001
diff changeset
13 mkinstalldirs
0
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
14 sdl-config
74212992fb08 Initial revision
Sam Lantinga <slouken@lokigames.com>
parents:
diff changeset
15 SDL.spec
703
ca809c1b41ca *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 596
diff changeset
16 SDL.qpg
596
475f969e8c01 CVS should ignore files automatically generated by building on MacOS X
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
17 .DS_Store