index a6d7a5b06254f39e88d26f176a6c020163a6a57f..0414afa9e371586fa3a926a2d3f14e6649271dcc 100644 (file)
{
if (fgets(line_hdr, 200, in_hdr) != NULL)
{
- if (fputs(line_hdr, out) != 0)
+ if (fputs(line_hdr, out) < 0)
{
printf ("fputs %s error\n", line_hdr);
goto error;
strcat (line, (const char *)(*argv++));
strcat (line, "[] = {\n");
- if (fputs(line, out) != 0)
+ if (fputs(line, out) < 0)
{
printf ("fputs %s error\n", line);
goto error;
{
if (fgets(line, 200, in) != NULL)
{
- if (fputs(line, out) != 0)
+ if (fputs(line, out) < 0)
{
- printf ("fputs %s error\n", fputs);
+ printf ("fputs %s error\n", line);
goto error;
}
}
}
}
- if (fputs("};\n", out) != 0)
+ if (fputs("};\n", out) < 0)
{
- printf ("fputs %s error\n", fputs);
+ printf ("fputs };\\n error\n");
goto error;
}
fclose(out);
return (-1);
-}
\ No newline at end of file
+}