以下のprintfを最初に呼び出すと、私の行が出力されます。
printfの2番目の呼び出しは、空白を出力します。
どうしたの?
while (getline(&line, &size, config_file) != -1) {
printf("line: %s\n", line);
/* check to see if this line is a comment */
char marker[1];
sscanf(line, "%1s", marker);
printf("line: %s\n", line);
if (marker[0] == '#') {
.
.