Skip to content

Commit

Permalink
Merge pull request #835 from v-atamanenko/patch-1
Browse files Browse the repository at this point in the history
Add format attribute to sceClib*print* functions
  • Loading branch information
Princess-of-Sleeping authored Feb 5, 2024
2 parents 99aa9bc + 3a67a18 commit 96b8721
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/psp2/kernel/clib.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ char sceClibLookCtypeTable(char ch);
int sceClibTolower(char ch);
int sceClibToupper(char ch);

int sceClibPrintf(const char *fmt, ...);
int sceClibDprintf(SceUID fd, const char *fmt, ...);
int sceClibPrintf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
int sceClibDprintf(SceUID fd, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));

int sceClibSnprintf(char *dst, SceSize dst_max_size, const char *fmt, ...);
int sceClibVsnprintf(char *dst, SceSize dst_max_size, const char *fmt, va_list args);
int sceClibSnprintf(char *dst, SceSize dst_max_size, const char *fmt, ...) __attribute__ ((format (printf, 3, 4)));
int sceClibVsnprintf(char *dst, SceSize dst_max_size, const char *fmt, va_list args) __attribute__ ((format (printf, 3, 0)));

char *sceClibStrncpy(char *dst, const char *src, SceSize len);
char *sceClibStrncat(char *dst, const char *src, SceSize len);
Expand Down

0 comments on commit 96b8721

Please sign in to comment.