Skip to content

Commit 33c58dc

Browse files
added semicolons at the end of statements from "puts" to "reallocarray" down the file chronologically (#568)
1 parent 1683331 commit 33c58dc

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

snippets/c/c.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -274,67 +274,67 @@
274274
},
275275
"puts": {
276276
"prefix": "puts",
277-
"body": ["puts(\"${1:This function doesn't need newline.}\")$0"],
277+
"body": ["puts(\"${1:This function doesn't need newline.}\");$0"],
278278
"description": "puts() snippet"
279279
},
280280
"fputs": {
281281
"prefix": "fputs",
282-
"body": ["fputs(\"${2:This is a simpler printf.\\n}\", ${1:stdout})$0"],
282+
"body": ["fputs(\"${2:This is a simpler printf.\\n}\", ${1:stdout});$0"],
283283
"description": "puts() snippet"
284284
},
285285
"printf": {
286286
"prefix": "printf",
287-
"body": ["printf(\"${1:%s}\\n\"$2)$0"],
287+
"body": ["printf(\"${1:%s}\\n\"$2);$0"],
288288
"description": "printf() snippet"
289289
},
290290
"fprintf": {
291291
"prefix": "fprintf",
292-
"body": ["fprintf(${1:stderr}, \"${2:%s}\\n\"$3)$0"],
292+
"body": ["fprintf(${1:stderr}, \"${2:%s}\\n\"$3);$0"],
293293
"description": "fprintf() snippet"
294294
},
295295
"sprintf": {
296296
"prefix": "sprintf",
297-
"body": ["sprintf(${1:buf}, \"${2:%s}\\n\"$3)$0"],
297+
"body": ["sprintf(${1:buf}, \"${2:%s}\\n\"$3);$0"],
298298
"description": "sprintf() snippet"
299299
},
300300
"snprintf": {
301301
"prefix": "snprintf",
302-
"body": ["snprintf(${1:buf}, ${2:max}, \"${3:%s}\\n\"$3)$0"],
302+
"body": ["snprintf(${1:buf}, ${2:max}, \"${3:%s}\\n\"$3);$0"],
303303
"description": "snprintf() snippet"
304304
},
305305
"scanf": {
306306
"prefix": "scanf",
307-
"body": ["scanf(\"${1:%d}\"$2)$0"],
307+
"body": ["scanf(\"${1:%d}\"$2);$0"],
308308
"description": "scanf() snippet"
309309
},
310310
"fscanf": {
311311
"prefix": "fscanf",
312-
"body": ["fscanf(${1:stdin}, \"${2:%d}\"$3)$0"],
312+
"body": ["fscanf(${1:stdin}, \"${2:%d}\"$3);$0"],
313313
"description": "fscanf() snippet"
314314
},
315315
"sscanf": {
316316
"prefix": "sscanf",
317-
"body": ["sscanf(${1:buf}, \"${2:%d}\"$3)$0"],
317+
"body": ["sscanf(${1:buf}, \"${2:%d}\"$3);$0"],
318318
"description": "sscanf() snippet"
319319
},
320320
"malloc": {
321321
"prefix": "malloc",
322-
"body": ["malloc(sizeof(${1:int[69]})$2)$0"],
322+
"body": ["malloc(sizeof(${1:int[69]})$2);$0"],
323323
"description": "malloc() snippet"
324324
},
325325
"calloc": {
326326
"prefix": "calloc",
327-
"body": ["calloc(${1:1}, sizeof(${2:int})$3)$0"],
327+
"body": ["calloc(${1:1}, sizeof(${2:int})$3);$0"],
328328
"description": "calloc() snippet"
329329
},
330330
"realloc": {
331331
"prefix": "realloc",
332-
"body": ["realloc(${1:ptr}, sizeof(${2:int[69]})$3)$0"],
332+
"body": ["realloc(${1:ptr}, sizeof(${2:int[69]})$3);$0"],
333333
"description": "realloc() snippet"
334334
},
335335
"reallocarray": {
336336
"prefix": "reallocarray",
337-
"body": ["reallocarray(${1:ptr}, ${2:69}, sizeof(${3:int})$4)$0"],
337+
"body": ["reallocarray(${1:ptr}, ${2:69}, sizeof(${3:int})$4);$0"],
338338
"description": "reallocarray() snippet"
339339
},
340340
"free": {

0 commit comments

Comments
 (0)