mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Remove dependency of strlcpy()
There was only one place where `strlcpy` was still used. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
23
include/extern/strl.h
vendored
23
include/extern/strl.h
vendored
@@ -1,23 +0,0 @@
|
||||
/*
|
||||
* 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 */
|
||||
Reference in New Issue
Block a user