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
86int safe_snprintf(char *buffer, size_t buffer_size, const char *format, ...);
87
111int safe_fprintf(FILE *stream, const char *format, ...);
112
147char *platform_strcat(char *dest, size_t dest_size, const char *src);
148
182int safe_sscanf(const char *str, const char *format, ...);
183
int safe_fprintf(FILE *stream, const char *format,...)
Safe version of fprintf.
int safe_snprintf(char *buffer, size_t buffer_size, const char *format,...)
Safe version of snprintf that ensures null termination.
int safe_sscanf(const char *str, const char *format,...)
Safe version of sscanf with validation.
char * platform_strcat(char *dest, size_t dest_size, const char *src)
Safe version of strcat with buffer size protection.