regncomp/regnexec for glibc ?

Geoff Keating geoffk@cygnus.com
Sun Jan 23 16:24:00 GMT 2000


> From: "Khimenko Victor" <khim@sch57.msk.ru>
> Date: Sat, 22 Jan 2000 21:37:16 +0300 (MSK)

> AFAIK in C itself the only operation with strings is it's definition. All
> other things are in system library.

There is no such distinction.  You either have C, including the
library functions, or you have something else.  Every conforming
implementation is required to implement the base part of the library,
which includes everything in string.h.  The operation `strcat()' is as
much a part of the language as is the operation `+' or the type
`size_t'.

Indeed, if you look at gcc, you'll see that strlen() and strcpy() are
implemented as built-ins.

-- 
- Geoffrey Keating <geoffk@cygnus.com>


More information about the Libc-alpha mailing list