3 * Copyright © 2001 Novell, Inc. All Rights Reserved.
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
12 * DESCRIPTION : ANSI functions hash defined to equivalent Netware functions.
25 #include "..\utility\utility.h"
28 //ANSI functions define to equivalent NetWare internationalization functions
30 #define setlocale NWLsetlocale
31 #define localeconv NWLlocaleconv
32 #define strncoll NWstrncoll
33 #define strftime NWLstrftime
41 #define isalnum NWLisalnum
42 #define isalpha NWLisalpha
43 #define isdigit NWLisdigit
45 #define strlen NWLmbslen
46 #define mblen NWLmblen
48 //#define strcpy(x,y) NWLstrbcpy(x,y,NWstrlen(y)+1)
50 NWstrncpy(x,y,NWstrlen(y)); \
52 #define strncpy(x,y,z) NWLstrbcpy(x,y,(z + 1))
53 #define strcat(x,y) NWLstrbcpy((x + NWstrlen(x)), y, (NWstrlen(y) +1))
54 #define strncmp(s1,s2,l) NWgstrncmp(s1,s2,l)
55 #define strnicmp(s1,s2,l) NWgstrnicmp(s1,s2,l)
57 #define toupper(s1) NWCharUpr(s1)
58 #define wsprintf NWsprintf
60 #define strncat(x,y,l) \
61 NWsprintf("oops!!! Not yet defined for NWI18N, define in intdef.h, still using strncat\n"); \
65 NWsprintf("oops!!! Not yet defined for NWI18N, define in intdef.h, still using strdup\n"); \
69 NWsprintf("oops!!! Not yet defined for NWI18N, define in intdef.h, still using strlist\n"); \
73 NWsprintf("oops!!! Not yet defined for NWI18N, define in intdef.h, still using strlwr\n"); \
76 #define strnset(s1,l1,l2) \
77 NWsprintf("oops!!! Not yet defined for NWI18N, define in intdef.h, still using strnset\n"); \
80 #define strset(s1,l1) \
81 NWsprintf("oops!!! Not yet defined for NWI18N, define in intdef.h, still using strset\n"); \