ascii-chat
0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
platform/string.h
Go to the documentation of this file.
1
38
#pragma once
39
40
#include <stdio.h>
41
#include <stdarg.h>
42
#include <stddef.h>
43
86
int
safe_snprintf
(
char
*buffer,
size_t
buffer_size,
const
char
*format, ...);
87
111
int
safe_fprintf
(FILE *stream,
const
char
*format, ...);
112
147
char
*
platform_strcat
(
char
*dest,
size_t
dest_size,
const
char
*src);
148
182
int
safe_sscanf
(
const
char
*str,
const
char
*format, ...);
183
safe_fprintf
int safe_fprintf(FILE *stream, const char *format,...)
Safe version of fprintf.
safe_snprintf
int safe_snprintf(char *buffer, size_t buffer_size, const char *format,...)
Safe version of snprintf that ensures null termination.
safe_sscanf
int safe_sscanf(const char *str, const char *format,...)
Safe version of sscanf with validation.
platform_strcat
char * platform_strcat(char *dest, size_t dest_size, const char *src)
Safe version of strcat with buffer size protection.
lib
platform
string.h
Generated by
1.9.8