Open64 (mfef90, whirl2f, and IR tools)
TAG: version-openad; SVN changeset: 916
|
00001 /* $Id: x_string.h,v 1.2 2004-02-28 21:05:05 eraxxon Exp $ */ 00002 /* -*-Mode: C;-*- */ 00003 /* * BeginRiceCopyright ***************************************************** 00004 * 00005 * ******************************************************* EndRiceCopyright */ 00006 00007 /* ==================================================================== 00008 * ==================================================================== 00009 * 00010 * 00011 * Nathan Tallent. 00012 * 00013 * Description: 00014 * 00015 * Header file extensions. 00016 * 00017 * The ANSI/ISO C++ standard does not include every routine that is 00018 * legally available in ANSI/ISO C. Moreover, neither C++ nor C 00019 * include every routine within the standard UNIX specification 00020 * (OpenGroup). This file provides that extra functionality for 00021 * ANSI/ISO C++ and C code. 00022 * 00023 * Routines available in C are prefixed by c_. 00024 * Routines available in Unix are prefixed by ux_ 00025 * 00026 * ==================================================================== 00027 * ==================================================================== */ 00028 00029 #ifndef x_string_h 00030 #define x_string_h 00031 00032 /*************************** System Include Files ***************************/ 00033 00034 #include <string.h> 00035 00036 /**************************** User Include Files ****************************/ 00037 00038 /*************************** Forward Declarations ***************************/ 00039 00040 /****************************************************************************/ 00041 00042 #if defined(__cplusplus) 00043 extern "C" { 00044 #endif 00045 00046 /* Unix */ 00047 extern int ux_strcasecmp(const char *s1, const char *s2); 00048 extern int ux_strncasecmp(const char *s1, const char *s2, size_t n); 00049 00050 /* Unix */ 00051 extern char *ux_strdup(const char *s1); 00052 00053 /* Unix */ 00054 extern void *ux_memccpy(void * /*restrict*/ s1, 00055 const void * /*restrict*/ s2, 00056 int c, size_t n); 00057 00058 #if defined(__cplusplus) 00059 } /* extern "C" */ 00060 #endif 00061 00062 #endif