mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
There was only one place where `strlcat` was used, and `snprintf` actually does a better job at what the code was trying to achieve. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
24 lines
381 B
C
24 lines
381 B
C
/*
|
|
* This file is part of RGBDS.
|
|
*
|
|
* Copyright (c) 2015-2018, RGBDS contributors.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#ifndef EXTERN_STRL_H
|
|
#define EXTERN_STRL_H
|
|
|
|
#ifdef STRL_IN_LIBC
|
|
|
|
#include <string.h>
|
|
|
|
#else /* STRL_IN_LIBC */
|
|
|
|
#define strlcpy rgbds_strlcpy
|
|
size_t strlcpy(char *dst, const char *src, size_t dsize);
|
|
|
|
#endif /* STRL_IN_LIBC */
|
|
|
|
#endif /* EXTERN_STRL_H */
|