Show
Ignore:
Timestamp:
02/25/09 19:42:08 (3 years ago)
Author:
mwhitworth
Message:

Readd strcpy for the Linux driver layer, its use is not recommended.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/lib/string.c

    r1807 r1934  
    221221 
    222222SYMBOL_EXPORT(strdup); 
     223 
     224/* strcpy - mainly for use by Linux drivers; not recommended. */ 
     225 
     226char* strcpy(char* dest, const char* src) 
     227{ 
     228        char* save = dest; 
     229         
     230        while (*src != '\0') 
     231                *dest++ = *src++; 
     232                 
     233        *dest='\0'; 
     234         
     235        return save; 
     236} 
     237 
     238SYMBOL_EXPORT(strcpy);