Changed repo organisation
This commit is contained in:
parent
50891b21f2
commit
df45cf75db
32 changed files with 0 additions and 0 deletions
39
src/utils/parsing/blanks.h
Normal file
39
src/utils/parsing/blanks.h
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
#ifndef BLANKS_H
|
||||
#define BLANKS_H
|
||||
|
||||
// === Definitions
|
||||
|
||||
#define BLANKS_LIST "\f\n\r\t\v "
|
||||
|
||||
// === Includes
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "../string/string.h"
|
||||
|
||||
// === Functions
|
||||
/*
|
||||
* NOTE:
|
||||
* As ispace(3) and isblank(3) functions from stdlib can be confusing and not
|
||||
* always best suited for what I want to do, I decided to reimplement them.
|
||||
* So be warned, they won't have the same behavior as their libc counterparts.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Doc: TODO
|
||||
*/
|
||||
bool is_space(char c);
|
||||
|
||||
/*
|
||||
* Doc: TODO
|
||||
*/
|
||||
bool is_blank(char c);
|
||||
|
||||
/*
|
||||
* Doc: TODO
|
||||
*/
|
||||
ssize_t skip_blanks(struct string *str, size_t offset);
|
||||
|
||||
#endif // ! BLANKS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue