Mercurial > sdl-ios-xcode
comparison src/main/macos/SDL_main.c @ 1338:604d73db6802
Removed uses of stdlib.h and string.h
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 09:29:18 +0000 |
parents | 3692456e7b0f |
children | 7a610f25c12f |
comparison
equal
deleted
inserted
replaced
1337:c687f06c7473 | 1338:604d73db6802 |
---|---|
587 memcpy (commandLine + appNameText[0] + 1, prefs.command_line + 1, prefs.command_line[0]); | 587 memcpy (commandLine + appNameText[0] + 1, prefs.command_line + 1, prefs.command_line[0]); |
588 commandLine[ appNameText[0] + 1 + prefs.command_line[0] ] = '\0'; | 588 commandLine[ appNameText[0] + 1 + prefs.command_line[0] ] = '\0'; |
589 | 589 |
590 /* Parse C-string into argv and argc */ | 590 /* Parse C-string into argv and argc */ |
591 nargs = ParseCommandLine (commandLine, NULL); | 591 nargs = ParseCommandLine (commandLine, NULL); |
592 args = (char **)SDL_malloc((nargs+1)*(sizeof *args)); | 592 args = (char **)malloc((nargs+1)*(sizeof *args)); |
593 if ( args == NULL ) { | 593 if ( args == NULL ) { |
594 exit(-1); | 594 exit(-1); |
595 } | 595 } |
596 ParseCommandLine (commandLine, args); | 596 ParseCommandLine (commandLine, args); |
597 | 597 |