Skip to content

Commit 7793f1b

Browse files
committed
Improve string length function documentation to clarify pointer arithmetic usage
1 parent e3a3adc commit 7793f1b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/AstraKernelManual.pdf

135 Bytes
Binary file not shown.

doc/contents/string.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ \subsection{\texttt{strlen(const char *str)}}
4747
\paragraph{Overview}
4848
This function counts the number of characters in a null-terminated string,
4949
excluding the null terminator itself. It returns the length of the string as an
50-
unsigned integer.
50+
unsigned integer. This function uses pointer arithmetic to traverse the string,
51+
performing mathematical operations directly on the pointer values.
5152

5253
\paragraph{Return Values}
5354
\begin{itemize}

0 commit comments

Comments
 (0)