Lines Matching refs:tchar

18  * This module provides with system/library function substitutes for tchar
19 * datatype. This also includes two conversion functions between tchar and
56 * strtots(to, from): convert a char string 'from' into a tchar buffer 'to'.
58 * When 'to' is NOSTR(=(tchar *)0), strtots() attempts to allocate a space
66 tchar *
67 strtots(tchar *to, char *from)
79 /* Allocate space for the resulting tchar array. */
80 to = (tchar *)xalloc(i * sizeof (tchar));
90 tstostr(char *to, tchar *from)
92 tchar *ptc;
131 * this returns # of tchars of the resulting tchar string.
133 * and the function reports how many tchar characters would be made in
135 * tchar *to; - Destination buffer, or NULL.
140 mbstotcs(tchar *to, char *from, int tosize)
142 tchar *ptc = to;
149 /* Just count how many tchar would be in the result. */
150 if (to == (tchar *)NULL) {
167 *(ptc++) = (tchar)wc;
174 *ptc = (tchar)0;
182 /* tchar version of STRING functions. */
186 * non-NULL tchar elements in tchar string argument.
189 strlen_(tchar *s)
201 * Concatenate tchar string s2 on the end of s1. S1's space must be large
204 tchar *
205 strcat_(tchar *s1, tchar *s2)
207 tchar *os1;
219 * Compare tchar strings: s1>s2: >0 s1==s2: 0 s1<s2: <0
227 strcmp_(tchar *s1, tchar *s2)
230 if (*s1++ == (tchar)0) {
241 strcoll_(tchar *s1, tchar *s2)
252 * Copy tchar string s2 to s1. s1 must be large enough.
255 tchar *
256 strcpy_(tchar *s1, tchar *s2)
258 tchar *os1;
270 tchar *
271 index_(tchar *sp, tchar c)
287 tchar *
288 rindex_(tchar *sp, tchar c)
290 tchar *r;
305 tswidth(tchar *ts)
331 tchar *
332 getenv_(tchar *name_)
340 tchar *
343 static tchar *pbuf = (tchar *)NULL;
357 /* Followings are the system call interface for tchar strings. */
364 creat_(tchar *name_, int mode)
380 tchar *path_;
399 mkstemp_(tchar *name_)
416 * tchar *buf; - where the result be stored. Not NULL terminated.
420 read_(int d, tchar *buf, int nchreq)
425 * We would have to read more than tchar bytes
432 tchar *t;
516 /* Convert the collected bytes into tchar array. */
626 /* One byte always represents one tchar. Easy! */
629 tchar *t;
661 *t++ = ((tchar)*s++);
677 write_(int d, tchar *buf, int nch)
681 tchar *pt;
696 * Convert to tchar string.
712 /* One byte always represents one tchar. Easy! */
715 tchar *t;
738 stat_(tchar *path, struct stat *buf)
747 lstat_(tchar *path, struct stat *buf)
756 chdir_(tchar *path)
764 tchar *
765 getwd_(tchar *path)
779 unlink_(tchar *path)
788 opendir_(tchar *dirname)
814 gethostname_(tchar *name, int namelen)
829 readlink_(tchar *path, tchar *buf, int bufsiz)
851 chkalldigit_(tchar *str)
866 atoi_(tchar *str)
874 tchar *
875 simple(tchar *s)
877 tchar *sname = s;