Notes langage C

Voir :

Langage C sans compiler - Script en C

GNU Coding Standards

https://developers.redhat.com/articles/2023/07/26/checking-usage-realloc-valgrind

GCC et RedHat : https://developers.redhat.com/articles/2023/11/10/install-gcc-and-build-hello-world-application-rhel-9

https://developers.redhat.com/articles/2024/04/03/improvements-static-analysis-gcc-14-compiler

C11 : la normalisation est achevée

Voir aussi :

ISO C99

https://developers.redhat.com/articles/2023/07/04/developers-guide-secure-coding-fortifysource

https://linuxfr.org/news/changement-de-licence-pour-mold-en-version-2-0

#include <stdio.h> #include <string.h> #include <malloc.h> main(int argc, char **argv) { int i, size; #define SEPARATEUR " " char *cmdline; for (i=1; i < argc; i++) size += strlen(SEPARATEUR) + strlen(argv[i]); cmdline = malloc(size); if (cmdline ) { memset(cmdline, 0, size); for (i=1; i < argc; i++) { strcat(cmdline, argv[i]); strcat(cmdline, SEPARATEUR); } } printf("-- %s --", cmdline); system(cmdline); }