Adding syntact highlighting

This commit is contained in:
2023-03-30 14:08:06 -04:00
parent 29ff5b5b96
commit 27bb51cb39
2 changed files with 7 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ Lets go over each function:
### strcat ### strcat
``` ```c
char *strcat(char *dest, char *src) char *strcat(char *dest, char *src)
``` ```
@@ -48,7 +48,7 @@ Be sure to set the last character to `null` after the `strcat` is completed.
### strncat ### strncat
``` ```c
strncat(char *dest, char *src, size_t src_len) strncat(char *dest, char *src, size_t src_len)
``` ```
@@ -61,7 +61,7 @@ In addition if `src` is not `null` terminated and `src_len` is longer than the l
### strlcat ### strlcat
``` ```c
size_t strlcat(char *dst, const char *src, size_t size) size_t strlcat(char *dst, const char *src, size_t size)
``` ```

View File

@@ -31,7 +31,7 @@ Lets go over each function:
### strcpy ### strcpy
``` ```c
strcpy(char *dest, char *src) strcpy(char *dest, char *src)
``` ```
@@ -46,7 +46,7 @@ Arbitrary memory reads can be a problem since it could mean revealing data meant
### strncpy ### strncpy
``` ```c
strncpy(char *dest, char *src, size_t dest_len) strncpy(char *dest, char *src, size_t dest_len)
``` ```
@@ -60,7 +60,7 @@ So `strncpy` can still read arbitrary memory and can still buffer overflow (tho
### strlcpy ### strlcpy
``` ```c
size_t strlcpy(char *dst, const char *src, size_t size) size_t strlcpy(char *dst, const char *src, size_t size)
``` ```
@@ -75,7 +75,7 @@ Point two is good so you can compare `size` to the return value to see if the so
### strdup ### strdup
``` ```c
char *strdup(const char *s); char *strdup(const char *s);
``` ```