Mercurial > sdl-ios-xcode
comparison src/video/ipod/SDL_ipodvideo.c @ 1336:3692456e7b0f
Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 06:59:48 +0000 |
parents | af8b0f9ac2f4 |
children | 604d73db6802 |
comparison
equal
deleted
inserted
replaced
1335:c39265384763 | 1336:3692456e7b0f |
---|---|
63 char *ptr; | 63 char *ptr; |
64 FILE *file; | 64 FILE *file; |
65 | 65 |
66 if ((file = fopen("/proc/cpuinfo", "r")) != NULL) { | 66 if ((file = fopen("/proc/cpuinfo", "r")) != NULL) { |
67 while (fgets(cpuinfo, sizeof(cpuinfo), file) != NULL) | 67 while (fgets(cpuinfo, sizeof(cpuinfo), file) != NULL) |
68 if (strncmp(cpuinfo, "Revision", 8) == 0) | 68 if (SDL_strncmp(cpuinfo, "Revision", 8) == 0) |
69 break; | 69 break; |
70 fclose(file); | 70 fclose(file); |
71 } | 71 } |
72 for (i = 0; !isspace(cpuinfo[i]); i++); | 72 for (i = 0; !isspace(cpuinfo[i]); i++); |
73 for (; isspace(cpuinfo[i]); i++); | 73 for (; isspace(cpuinfo[i]); i++); |
74 ptr = cpuinfo + i + 2; | 74 ptr = cpuinfo + i + 2; |
75 | 75 |
76 return strtol(ptr, NULL, 10); | 76 return SDL_strtol(ptr, NULL, 10); |
77 } | 77 } |
78 | 78 |
79 static int iPod_Available() | 79 static int iPod_Available() |
80 { | 80 { |
81 return 1; | 81 return 1; |