X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Fstring.h;h=9d2a517a7cc2de434d46af6274b686d77d5c1205;hp=e7e69216de1b6ca3fe021ed8d40a3eab98ddd735;hb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;hpb=8c8750c2826684c2420571a8007b9606f72c9040 diff --git a/includes/string.h b/includes/string.h index e7e6921..9d2a517 100644 --- a/includes/string.h +++ b/includes/string.h @@ -1,27 +1,37 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- -// String handling -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $Id$ + * ---------------------------------------------------------------------------- + * Public Domain C Library - http://pdclib.sourceforge.net + * This code is Public Domain. Use, modify, and redistribute at will. + * ---------------------------------------------------------------------------- + * String handling + * --------------------------------------------------------------------------*/ -#ifndef __STRING_H -#define __STRING_H __STRING_H +#ifndef _STRING_H +#define _STRING_H _STRING_H -// ---------------------------------------------------------------------------- -// MACROS +#ifndef _NULL +#include "__intern.h" +#endif /* _NULL */ -#include "__NULL.h" +/* ---------------------------------------------------------------------------- + * MACROS + * --------------------------------------------------------------------------*/ -// ---------------------------------------------------------------------------- -// TYPEDEFS +#define NULL _NULL -#include "__size_t.h" +/* ---------------------------------------------------------------------------- + * TYPEDEFS + * --------------------------------------------------------------------------*/ -// ---------------------------------------------------------------------------- -// FUNCTIONS +#ifndef _SIZE_T +#define _SIZE_T _SIZE_T +typedef __size_t size_t +#endif /* _SIZE_T */ + +/* ---------------------------------------------------------------------------- + * FUNCTIONS + * --------------------------------------------------------------------------*/ /** MEMory search for CHaRacter. Searches a memory area for a character. * @param src The memory area. @@ -269,4 +279,4 @@ char * strrchr( const char * src, int c ); */ char * strstr( const char * src_1, const char * src_2 ); -#endif // __STRING_H +#endif /* _STRING_H */