File: split.h

package info (click to toggle)
mawk 1.3.4.20260129-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,244 kB
  • sloc: ansic: 19,998; sh: 4,627; yacc: 1,182; awk: 903; makefile: 301
file content (30 lines) | stat: -rw-r--r-- 802 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/********************************************
split.h
copyright 2014-2023,2026 Thomas E. Dickey
copyright 2014, Michael D. Brennan

This is a source file for mawk, an implementation of
the AWK programming language.

Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
********************************************/

/*
 * $MawkId: split.h,v 1.5 2026/01/16 23:53:21 tom Exp $
 */

/* split.h */

#ifndef MAWK_SPLIT_H
#define MAWK_SPLIT_H

#include <sys/types.h>

extern size_t null_split(const char *s, size_t slen);
extern size_t re_split(char *s, size_t slen, PTR re);
extern size_t space_split(const char *s, size_t slen);
extern void transfer_to_array(CELL cp[], size_t cnt);
extern void transfer_to_fields(size_t cnt);

#endif /* MAWK_SPLIT_H */