mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-16 03:19:54 +08:00
b56d7e7937
* libc/argz/*: New files. * libc/argz/argz_add.c: New file. * libc/argz/argz_add_sep.c: New file. * libc/argz/argz_append.c: New file. * libc/argz/argz_count.c: New file. * libc/argz/argz_create.c: New file. * libc/argz/argz_create_sep.c: New file. * libc/argz/argz_delete.c: New file. * libc/argz/argz_extract.c: New file. * libc/argz/argz_insert.c: New file. * libc/argz/argz_next.c: New file. * libc/argz/argz_replace.c: New file. * libc/argz/argz_stringify.c: New file. * libc/argz/buf_findstr.c: New file. * libc/argz/envz_add.c: New file. * libc/argz/envz_entry.c: New file. * libc/argz/envz_get.c: New file. * libc/argz/envz_merge.c: New file. * libc/argz/envz_remove.c: New file. * libc/argz/envz_strip.c: New file. * libc/include/argz.h: New file. * libc/include/envz.h: New file. * Makefile.am (LIBC_OBJECTLISTS): Add libc/argz/objectlist.awk.in. * libc/Makefile.am (SUBDIRS): Add argz. (SUBLIBS): Add argz/libargz.la. * libc/configure.in (AC_OUTPUT): Add argz/Makefile. * libc/include/errno.h: Add error_t typedef.
23 lines
1.2 KiB
C
23 lines
1.2 KiB
C
/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
|
|
*
|
|
* Permission to use, copy, modify, and distribute this software
|
|
* is freely granted, provided that this notice is preserved.
|
|
*/
|
|
|
|
#include <errno.h>
|
|
#include <sys/types.h>
|
|
|
|
/* The newlib implementation of these functions assumes that sizeof(char) == 1. */
|
|
error_t argz_create (char *const argv[], char **argz, size_t *argz_len);
|
|
error_t argz_create_sep (const char *string, int sep, char **argz, size_t *argz_len);
|
|
size_t argz_count (const char *argz, size_t argz_len);
|
|
void argz_extract (char *argz, size_t argz_len, char **argv);
|
|
void argz_stringify (char *argz, size_t argz_len, int sep);
|
|
error_t argz_add (char **argz, size_t *argz_len, const char *str);
|
|
error_t argz_add_sep (char **argz, size_t *argz_len, const char *str, int sep);
|
|
error_t argz_append (char **argz, size_t *argz_len, const char *buf, size_t buf_len);
|
|
error_t argz_delete (char **argz, size_t *argz_len, char *entry);
|
|
error_t argz_insert (char **argz, size_t *argz_len, char *before, const char *entry);
|
|
char * argz_next (char *argz, size_t argz_len, const char *entry);
|
|
error_t argz_replace (char **argz, size_t *argz_len, const char *str, const char *with, unsigned *replace_count);
|