]> sourceware.org Git - newlib-cygwin.git/blame - newlib/libc/include/argz.h
Cygwin: console: Fix clean up conditions in close()
[newlib-cygwin.git] / newlib / libc / include / argz.h
CommitLineData
b56d7e79
TF
1/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
2 *
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
5 */
6
d48670ed
CV
7#ifndef _ARGZ_H_
8#define _ARGZ_H_
9
b56d7e79
TF
10#include <errno.h>
11#include <sys/types.h>
12
d48670ed
CV
13#include "_ansi.h"
14
15_BEGIN_STD_C
16
b56d7e79
TF
17/* The newlib implementation of these functions assumes that sizeof(char) == 1. */
18error_t argz_create (char *const argv[], char **argz, size_t *argz_len);
19error_t argz_create_sep (const char *string, int sep, char **argz, size_t *argz_len);
20size_t argz_count (const char *argz, size_t argz_len);
21void argz_extract (char *argz, size_t argz_len, char **argv);
22void argz_stringify (char *argz, size_t argz_len, int sep);
23error_t argz_add (char **argz, size_t *argz_len, const char *str);
24error_t argz_add_sep (char **argz, size_t *argz_len, const char *str, int sep);
25error_t argz_append (char **argz, size_t *argz_len, const char *buf, size_t buf_len);
26error_t argz_delete (char **argz, size_t *argz_len, char *entry);
27error_t argz_insert (char **argz, size_t *argz_len, char *before, const char *entry);
28char * argz_next (char *argz, size_t argz_len, const char *entry);
29error_t argz_replace (char **argz, size_t *argz_len, const char *str, const char *with, unsigned *replace_count);
d48670ed
CV
30
31_END_STD_C
32
33#endif /* _ARGZ_H_ */
This page took 0.384214 seconds and 6 git commands to generate.