PatchworkOS
Loading...
Searching...
No Matches
argsplit.h
Go to the documentation of this file.
1#ifndef _SYS_ARGSPLIT_H
2#define _SYS_ARGSPLIT_H 1
3
4#include <stdint.h>
5
6#if defined(__cplusplus)
7extern "C"
8{
9#endif
10
11#include "_internal/config.h"
12
35const char** argsplit(const char* str, uint64_t maxLen, uint64_t* count);
36
51const char** argsplit_buf(void* buf, uint64_t size, const char* str, uint64_t maxLen, uint64_t* count);
52
53#if defined(__cplusplus)
54}
55#endif
56
57#endif
58
const char ** argsplit_buf(void *buf, uint64_t size, const char *str, uint64_t maxLen, uint64_t *count)
Standardized argument parsing function using a provided buffer.
Definition argsplit_buf.c:3
const char ** argsplit(const char *str, uint64_t maxLen, uint64_t *count)
Standardized argument parsing function.
Definition argsplit.c:3
static atomic_long count
Definition main.c:9
__UINT64_TYPE__ uint64_t
Definition stdint.h:17