{
struct os_stdc_stream *stream = os_stdc_stream(_stream);
- if(!stream)
- return;
-
fclose(stream->file);
free(stream);
{
struct os_stdc_stream *stream = os_stdc_stream(_stream);
- if(!stream)
- return FALSE;
-
return fwrite(data, size, 1, stream->file) == size ? TRUE : FALSE;
}
{
struct os_stdc_stream *stream = os_stdc_stream(_stream);
- if(!stream)
- return;
-
fflush(stream->file);
}
{
struct os_stdc_stream *stream;
- stream = (struct os_stdc_stream *)calloc(1, sizeof(struct os_stream));
+ stream = (struct os_stdc_stream *)calloc(1, sizeof(*stream));
if(!stream)
goto no_stream;