Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
hengxin committed Nov 22, 2024
1 parent e83aadb commit 6a65fec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 8-pointers-c-strings/strcpy.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ void StrCpy4(char *dest, const char *src);
void StrCpy5(char *dest, const char *src);
void StrCpy6(char *dest, const char *src);
char *StrCpyStd(char *dest, const char *src);
char *StrNCpyStd(char *dest, const char *src, size_t n) {
char *StrNCpyStd(char *dest, const char *src, size_t n);

int main() {
int main(void) {
const char *src = "Hello World";
// VLA (Do not use it; it is optional since C11)
// char dest[strlen(src) + 1];
Expand Down

0 comments on commit 6a65fec

Please sign in to comment.