File: strexp.h

package info (click to toggle)
searchandrescue 1.4.0-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 6,744 kB
  • sloc: ansic: 89,617; cpp: 7,703; makefile: 191; sh: 123
file content (23 lines) | stat: -rw-r--r-- 392 bytes parent folder | download | duplicates (27)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _STREXP_H_
#define _STREXP_H_

#ifdef __cplusplus
extern "C" {
#endif


#include <stdlib.h>
#include <ctype.h>

/* strexp - expand a string into its substrings by whitespace */
extern char **strexp(const char *str, int *n);

/* strchrexp - expand a string into fields (c = designator) */
extern char **strchrexp(const char *str, char c, int *n);


#ifdef __cplusplus
}
#endif

#endif