mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-04 12:14:19 +01:00
ffStrbufPutTo
This commit is contained in:
@@ -238,6 +238,12 @@ void ffStrbufWriteTo(FFstrbuf* strbuf, FILE* file)
|
||||
fwrite(strbuf->chars, sizeof(char), strbuf->length, file);
|
||||
}
|
||||
|
||||
void ffStrbufPutTo(FFstrbuf* strbuf, FILE* file)
|
||||
{
|
||||
fwrite(strbuf->chars, sizeof(char), strbuf->length, file);
|
||||
fputc('\n', file);
|
||||
}
|
||||
|
||||
int ffStrbufComp(FFstrbuf* strbuf, const FFstrbuf* comp)
|
||||
{
|
||||
return ffStrbufCompNS(strbuf, comp->length, comp->chars);
|
||||
|
||||
@@ -54,6 +54,7 @@ void ffStrbufAppendVF(FFstrbuf* strbuf, const char* format, va_list arguments);
|
||||
char ffStrbufGetC(FFstrbuf* strbuf, uint32_t index);
|
||||
|
||||
void ffStrbufWriteTo(FFstrbuf* strbuf, FILE* file);
|
||||
void ffStrbufPutTo(FFstrbuf* strbuf, FILE* file);
|
||||
|
||||
int ffStrbufComp(FFstrbuf* strbuf, const FFstrbuf* comp);
|
||||
int ffStrbufCompS(FFstrbuf* strbuf, const char* comp);
|
||||
|
||||
Reference in New Issue
Block a user