KernOS
utilities.h File Reference
#include <common.h>
#include <kprintf.h>
Include dependency graph for utilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GHETTO_GET_CR(x)
 

Functions

size_t Strlen (const char *Str)
 Count number of characters in string. More...
 

Macro Definition Documentation

◆ GHETTO_GET_CR

#define GHETTO_GET_CR (   x)
Value:
uint32_t Local_##x; \
asm volatile \
( \
"mov %%"#x", %%eax\n" \
"mov %%eax, %0\n" \
: "=m"(Local_##x) \
: \
: "%eax" \
);

Definition at line 85 of file utilities.h.

Function Documentation

◆ Strlen()

size_t Strlen ( const char *  Str)

Count number of characters in string.

Parameters
Str
Returns
string length

Definition at line 7 of file utilities.cpp.