/[osn-commons]/trunk/plibc/lib/string.h
ViewVC logotype

Diff of /trunk/plibc/lib/string.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 50 by rakinar2, Thu Aug 15 18:10:51 2024 UTC revision 51 by rakinar2, Fri Aug 16 18:34:43 2024 UTC
# Line 1  Line 1 
1  #ifndef PLIBC_STRING_H  #ifndef PLIBC_STRING_H
2  #define PLIBC_STRING_H  #define PLIBC_STRING_H
3    
4  #include <stddef.h>  #include "stddef.h"
5    
6  size_t  size_t strlen (const char *str);
7  strlen (const char *str)  const char *strerror (int errnum);
8  {  void *memcpy (void *dest, const void *src, size_t n);
     size_t len = 0;  
   
     while (str[len])  
         len++;  
   
     return len;  
 }  
9    
10  #endif /* PLIBC_STRING_H */  #endif /* PLIBC_STRING_H */

Legend:
Removed from v.50  
changed lines
  Added in v.51

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26