PatchworkOS
Loading...
Searching...
No Matches
argsplit.h File Reference
#include <ctype.h>
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  _argsplit_state_t
 

Macros

#define _ARGSPLIT_CREATE(str, maxLen)   {str, 0, false, false, true, 0, maxLen}
 

Functions

bool _argsplit_step_state (_argsplit_state_t *state)
 
uint64_t _argsplit_count_chars_and_args (const char *str, uint64_t *argc, uint64_t *totalChars, uint64_t maxLen)
 
const char ** _argsplit_backend (const char **argv, const char *str, uint64_t argc, uint64_t maxLen)
 

Macro Definition Documentation

◆ _ARGSPLIT_CREATE

#define _ARGSPLIT_CREATE (   str,
  maxLen 
)    {str, 0, false, false, true, 0, maxLen}

Definition at line 22 of file argsplit.h.

Function Documentation

◆ _argsplit_backend()

const char ** _argsplit_backend ( const char **  argv,
const char *  str,
uint64_t  argc,
uint64_t  maxLen 
)

◆ _argsplit_count_chars_and_args()

uint64_t _argsplit_count_chars_and_args ( const char *  str,
uint64_t argc,
uint64_t totalChars,
uint64_t  maxLen 
)

◆ _argsplit_step_state()