aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/paths.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-28 17:38:05 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-28 17:38:05 -0400
commite07f3c9f353027b4779a4364908d1e23db6afe7f (patch)
treef517dfc4bdda05781853f37f5c8f6a60aa925a11 /src/stdlib/paths.c
parent34300ba37a9b82e51a602459956da1e6661a358c (diff)
Revert "Add strlcpy for mac"
This reverts commit 34300ba37a9b82e51a602459956da1e6661a358c.
Diffstat (limited to 'src/stdlib/paths.c')
-rw-r--r--src/stdlib/paths.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/stdlib/paths.c b/src/stdlib/paths.c
index 2cd87847..7f881c00 100644
--- a/src/stdlib/paths.c
+++ b/src/stdlib/paths.c
@@ -521,18 +521,6 @@ public Array_t Path$subdirectories(Path_t path, bool include_hidden)
return _filtered_children(path, include_hidden, S_IFDIR);
}
-#ifdef __APPLE__
-static size_t strlcpy(char *dst, const char *src, size_t size) {
- size_t srclen = strlen(src);
- if (size > 0) {
- size_t copylen = (srclen >= size) ? size - 1 : srclen;
- memcpy(dst, src, copylen);
- dst[copylen] = '\0';
- }
- return srclen;
-}
-#endif
-
public Path_t Path$unique_directory(Path_t path)
{
path = Path$expand_home(path);