Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: remove unused function uv__strlcpy()
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Jan 6, 2013
1 parent 345eb63 commit 87cbf8d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/unix/core.c
Expand Up @@ -501,24 +501,6 @@ int uv__dup(int fd) {
} }




/* TODO move to uv-common.c? */
size_t uv__strlcpy(char* dst, const char* src, size_t size) {
const char *org;

if (size == 0) {
return 0;
}

org = src;
while (--size && *src) {
*dst++ = *src++;
}
*dst = '\0';

return src - org;
}


uv_err_t uv_cwd(char* buffer, size_t size) { uv_err_t uv_cwd(char* buffer, size_t size) {
if (!buffer || !size) { if (!buffer || !size) {
return uv__new_artificial_error(UV_EINVAL); return uv__new_artificial_error(UV_EINVAL);
Expand Down

0 comments on commit 87cbf8d

Please sign in to comment.