Banjo API 0.0.1
C99 game development API
Loading...
Searching...
No Matches
String Utilities

Macros

#define bj_strlen   strlen
#define bj_strcmp   strcmp

Detailed Description

Lightweight wrappers around standard C string functions.

This module provides banjo-prefixed aliases for common string operations from the C standard library. These macros maintain API consistency while delegating to the standard implementations.

Macro Definition Documentation

◆ bj_strcmp

#define bj_strcmp   strcmp

Compare two null-terminated strings lexicographically.

Wrapper around the standard C library strcmp function.

Parameters
s1Pointer to the first null-terminated string.
s2Pointer to the second null-terminated string.
Returns
An integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2.
See also
strcmp

◆ bj_strlen

#define bj_strlen   strlen

Calculate the length of a null-terminated string.

Wrapper around the standard C library strlen function.

Parameters
sPointer to a null-terminated string.
Returns
The number of characters in the string, excluding the null terminator.
See also
strlen