libft
Loading...
Searching...
No Matches
Functions
skip_whitespace.c File Reference

Utility functions to skip leading whitespace in C strings. More...

#include "libft.h"
+ Include dependency graph for skip_whitespace.c:

Functions

void skip_whitespace_index (const char *input, int *i)
 Skips leading whitespace by incrementing a pointer index.
 
char * skip_whitespace_ptr (const char *s)
 Returns a pointer to the first non-whitespace character.
 

Detailed Description

Utility functions to skip leading whitespace in C strings.

Author
Toonsa
Date
2025/04/05

This file implements helper functions for parsing strings by skipping over leading whitespace characters. It provides both pointer-based and index-based variants to accommodate different parsing use cases.