You are not logged in.
Pages: 1
there are no strlcpy and strlcat in my /usr/include/string.h header file.
where are those?
source code is http://www.kipple.pe.kr/win/unalz/unalz-0.60.tgz
unalz # make linux-utf8
g++ -c -o main.o main.cpp
g++ -c -o UnAlz.o UnAlz.cpp
UnAlz.cpp: In function 'void safe_strcpy(char*, const char*, size_t)':
UnAlz.cpp:113: error: 'strlcpy' was not declared in this scope
UnAlz.cpp: In function 'void safe_strcat(char*, const char*, size_t)':
UnAlz.cpp:123: error: 'strlcat' was not declared in this scope
make: *** [UnAlz.o] Error 1
unalz # man strlcat
No manual entry for strlcat
unalz # man strlcpy
No manual entry for strlcpy
unalz # pacman -Qs glibc
local/glibc 2.5-3
GNU C Library
Offline
try strcpy and strcat from string.h
Offline
Does this help:
In glib these functions are named g_strlcpy and g_strlcat (not strlcpy or strlcat) to be consistent with the glib library naming conventions.
You'll find them in /usr/include/glib-2.0/glib/gstrfuncs.h, provided by the glib2 package.
Offline
strcpy and strcat is not work, but strncpy and strncat work fine.
this souce only cui command. not need glib2 and i tried to g_strlcpy and g_strncat, but not worked. i think more modified.
i fonund strlcpy patch file in LSF. http://www.linuxfromscratch.org/patches … at-1.patch
i apply patch to glibc and rebuild source code. it works.
why linux not those function include? ubuntu glibc also not include. i mailed to developer to fix them.
sorry poof my english.
thanks T-Dawg, tomk.
--
[append]
strncpy and strncat is complie work. not correct function. wierd work.
Offline
Maybe you need the functions from bind:
/usr/include/isc/string.h
Offline
Pages: 1