1 /***************************************************************
3 ***************************************************************/
8 extern char * rb_w32_getenv(const char *);
10 /* getenv should replace with rb_w32_getenv. */
11 char *getenv(const char *env
)
13 return rb_w32_getenv(env
);
16 char *_fullpath(char *absPath
, const char *relPath
,
19 strcpy( absPath
, relPath
);
23 int mblen(const char *mbstr
, size_t count
)
25 const char *p
= mbstr
;
29 for( i
=0; i
<count
; i
++ )
32 if( IsDBCSLeadByteEx( CP_ACP
, *p
) )
41 void *bsearch( const void *key
, const void *base
,
42 size_t num
, size_t width
,
43 int ( __cdecl
*compare
)(const void *, const void *))
49 for( i
=0; i
<num
; i
++ )
51 if( 0==compare( key
, p
) )
53 px
= (const char*)p
; px
+=width
; p
=(const void*)px
;