We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 853c791 commit 4335e49Copy full SHA for 4335e49
c/stdio_h.c
@@ -112,24 +112,6 @@ int main(void) {
112
assert(strcmp(cs, cs2) == 0);
113
}
114
115
-#if __STDC_VERSION__ >= 199901L
116
- /*
117
- # snprintf
118
-
119
- Like `sprintf`, but writes at most n bytes, so it is safer,
120
- because it may not be possible or easy to calculate the resulting
121
- size of a formated string.
122
123
- The size given *includes* the null terminator.
124
- */
125
- {
126
- char cs[] = "123";
127
- char cs2[3];
128
- snprintf(cs2, 3, "%s", cs);
129
- assert(strcmp(cs2, "12") == 0);
130
- }
131
-#endif
132
133
/*
134
# fprintf
135
0 commit comments