use the backslash: "\"" is a string containing "

like this:

char str[67] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'-_\"";

added one for the implicit '\0' at the end (and put in the missing vV) - this could also be:

char str[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'-_\"";

and let the compiler count for you - then you can get the count with sizeof(str);

How does it add up to 67?

a-z 26
A-Z 26
0-9 10
'-_" 4
'\0' 1
    ---
    67
Answer from Glenn Teitelbaum on Stack Overflow
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ c language โ€บ strings-in-c
Strings in C - GeeksforGeeks
November 14, 2025 - We can change individual characters ... the new string fits within the allocated array size to avoid memory issues. ... #include <stdio.h> ......
๐ŸŒ
BeginnersBook
beginnersbook.com โ€บ 2014 โ€บ 01 โ€บ c-strings-string-functions
C โ€“ Strings and String functions with examples
It searches string str for character ch (you may be wondering that in above definition I have given data type of ch as int, donโ€™t worry I didnโ€™t make any mistake it should be int only. The thing is when we give any character while using strchr then it internally gets converted into integer for better searching. ... #include <stdio.h> #include <string.h> int main() { char mystr[30] = "Iโ€™m an example of function strchr"; printf ("%s", strchr(mystr, 'f')); return 0; }
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ c language โ€บ c-library-string-h
C Library - <string.h> - GeeksforGeeks
July 23, 2025 - // C program to demonstrate the use of C string.h //header file #include <stdio.h> #include <string.h> int main() { // initializing some strings char str1[20] = "Geeksfor"; char str2[20] = "Geeks"; // using strlen(), strcat() printf("Str1: %s\n", str1); printf("Length of Str1 before concatenation: %d\n", strlen(str1)); strcat(str1, str2); // concatenating str1 and str2 printf("Str1: %s\n", str1); return 0; }
๐ŸŒ
W3Schools
w3schools.com โ€บ c โ€บ c_strings.php
C Strings
The difference between the two ways of creating strings, is that the first method is easier to write, and you do not have to include the \0 character, as C will do it for you.
๐ŸŒ
Reddit
reddit.com โ€บ r/c_programming โ€บ do we need to add a string library if we want to use string data type?
r/C_Programming on Reddit: Do we need to add a string library if we want to use string data type?
November 16, 2024 - An array is contiguous memory; the characters are one after the other in memory u can access the next one by incrementing memory addresses by one. A linked list on the other hand is not contiguous. U could imagine it as a linked list if u want but I don't see any benefit to that at all. An array is much simpler to grasp (and also to implement) ... You might like bstrlib, I have used it a few times, it has never lt me down. ... #include <string.h> int main( void ) { char str[11]; // can store a string up to 10 characters long strcpy( str, "hello" ); ...
๐ŸŒ
Programiz
programiz.com โ€บ c-programming โ€บ c-strings
Strings in C (With Examples)
In this tutorial, you'll learn about strings in C programming. You'll learn to declare them, initialize them and use them for various I/O operations with the help of examples.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ home โ€บ c_standard_library โ€บ c standard library string functions
C Standard Library String Functions
August 29, 2012 - Explore the C Standard Library's string functions, including detailed explanations and examples on how to manipulate strings effectively.
Find elsewhere
๐ŸŒ
W3Schools
w3schools.com โ€บ c โ€บ c_strings_functions.php
C String Functions
C Examples C Real-Life Examples C Exercises C Quiz C Code Challenges C Compiler C Syllabus C Study Plan C Interview Q&A C Certificate ... C also has many useful string functions, which can be used to perform certain operations on strings. To use them, you must include the <string.h> header ...
๐ŸŒ
Cplusplus
cplusplus.com โ€บ forum โ€บ general โ€บ 4202
Why we need #include - C++ Forum
<iostream> is not required (actually, it is not supposed to) #include <string>. If you using strings, you should #include <string>, whether or not your particular compiler lets you get away without it.
๐ŸŒ
Swarthmore College
cs.swarthmore.edu โ€บ ~newhall โ€บ unixhelp โ€บ C_strings.html
Strings in C
Here is a description of some of the functions in the Stardard C string libarary (string.h) for manipulating strings: #include <string.h> int strlen(char *s); // returns the length of the string // not including the null character char *strcpy(char *dst, char *src); // copies string src to string dst up // unitl first '\0' character in src // returns a ptr to the destination string // it adds '\0' to end of the copy char *strncpy(char *dst, char *src, int size); // copies up to first '\0' or size characters // from src to dst int strcmp(char *s1, char *s2); // returns 0 if s1 and s2 are the sa
๐ŸŒ
Weber State University
icarus.cs.weber.edu โ€บ ~dab โ€บ cs1410 โ€บ textbook โ€บ 8.Strings โ€บ c_string_funcs.html
8.2.2. C-String Documentation And Functions
Functions whose names begin with "mem" perform similar tasks but with more general data. The frequently used header files (e.g., <iostream>) provided with some compilers chain one header to another by including the C-string header file, making an explicit #include <cstring> unnecessary.
๐ŸŒ
W3Schools
w3schools.com โ€บ c โ€บ c_ref_string.php
C string (string.h) Library Reference
C Examples C Real-Life Examples C Exercises C Quiz C Code Challenges C Compiler C Syllabus C Study Plan C Interview Q&A C Certificate ... The <string.h> library has many functions that allow you to perform tasks on strings.
๐ŸŒ
Cplusplus
cplusplus.com โ€บ reference โ€บ cstring
<cstring> (string.h)
C Strings This header file defines several functions to manipulate C strings and arrays.
๐ŸŒ
WsCube Tech
wscubetech.com โ€บ resources โ€บ c-programming โ€บ string-functions
String Functions in C (Full List With Examples)
August 29, 2025 - Learn about string functions in C and explore a complete list with examples. Improve your understanding of string manipulation in C. Read now!