This commit is contained in:
Nishi 2026-06-21 16:55:56 +09:00
commit 69776245a7
20 changed files with 59721 additions and 58907 deletions

View file

@ -0,0 +1,11 @@
#ifndef __SJ4COMPAT_H__
#define __SJ4COMPAT_H__
#include <stddef.h>
#include <stdarg.h>
#include <stdio.h>
int sj4_snprintf(char*, size_t, const char*, ...);
size_t sj4_strlcpy(char*, const char*, size_t);
#endif

View file

@ -18,8 +18,8 @@
#define SJ_STRING_H
/* string.c */
int sj4_str_sjistoeuc(unsigned char*, int, unsigned char*, unsigned char*, int*);
int sj4_str_euctosjis(unsigned char*, int, unsigned char*, unsigned char*, int*);
int sj4_str_sjistoeuc(unsigned char*, int, unsigned char*, int, unsigned char*, int*);
int sj4_str_euctosjis(unsigned char*, int, unsigned char*, int, unsigned char*, int*);
int sj4_sjistoeuclen(unsigned char*, int);
int sj4_sjistoeuc(unsigned char* s, int, unsigned char*, int);