tiny-shell 0.2
A mini shell project aiming to gain knowledge about Win32 and Linux API
Loading...
Searching...
No Matches
args.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdbool.h>
4
5#include "../os/type.h"
6
10struct args {
11 os_char **argv;
12 unsigned int argc;
14};
15
20bool args_init_from_str(struct args *obj, const os_char *input);
21void args_destroy(struct args *obj);
22
24struct args *args_deep_copy(const struct args *obj);
25
27void args_deep_copy_init(struct args *obj, const struct args *source);
28
30bool is_whitespace(os_char c);
void args_deep_copy_init(struct args *obj, const struct args *source)
Initialize the object by deep copying source
Definition args.c:163
bool is_whitespace(os_char c)
!
Definition args.c:177
struct args * args_deep_copy(const struct args *obj)
Deep copy the object, including arguments string.
Definition args.c:145
void args_destroy(struct args *obj)
Definition args.c:135
bool args_init_from_str(struct args *obj, const os_char *input)
Build args from an input string.
Definition args.c:117
Result after parsing an arbitrary string.
Definition args.h:10
os_char ** argv
Definition args.h:11
unsigned int argc
Definition args.h:12
bool background
Definition args.h:13