Help for this page

Select Code to Download


  1. or download this
    /* try.c */
    #include <stdio.h>
    ...
     printf("%s\n", buf);
    }
    
  2. or download this
    try.c: In function ‘foo’:
    try.c:17:17: warning: ‘%.*g’ directive writing between 1 and 133 bytes
    + into a region of size 127 [-Wformat-overflow=]
    ...
      sprintf (buf, "%.*g", 126, d);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~