passing var args as-is to a function108 (3/25/2013 9:44:24 AM) comp.lang.c i have a common function which takes variable parameters as an argument,
depending on the type (the first arg) i want to call the appropriate
function with rest of the param list, is there any way to do this ... sinbad
macro and static inline937 (9/28/2012 4:51:48 AM) comp.lang.c when would one use macros and when static inline,
unless the static inline function is referenced
by it's address, it is 'almost' like a macro with
better readability, so why not use static inline
as macros... sinbad
pthread local buffer space447 (9/17/2012 7:55:07 AM) comp.unix.programmer hi,
In one of my program, there came a need where i should
have a thread specific buffer, i found that pthread_key_t
and pthread_getspecific() pthread_setspecific() family of
functions are used exactl... sinbad
adding debugs in c code438 (9/6/2012 4:48:03 AM) comp.unix.programmer i often find adding debugs, ruins the readability of the code.
i've checked many projects, where in often each debug statement
spans 7 to 8 lines, which makes the code look ugly and even
incomprehensible.... sinbad
adding debugs in the code621 (9/6/2012 4:47:27 AM) comp.lang.c i often find adding debugs, ruins the readability of the code.
i've checked many projects, where in often each debug statement
spans 7 to 8 lines, which makes the code look ugly and even
incomprehensible. so... sinbad
use of va_arg1024 (9/3/2012 10:36:56 AM) comp.lang.c is this ok to use va_arg() while calling a function and passing
it as a parameter,look at the following example. while invoking
func_two() does the parameter passing depend on how args are
parsed.
void
f... sinbad
process cpu usage257 (8/10/2012 2:13:45 PM) comp.unix.programmer if a process is consuming 100% cpu does it mean the
other processes will not get share of cpu at all, if no
how does the os calculates if process has used up it's
share of cpu.
tia
... sinbad
bash text search955 (8/8/2012 6:47:06 AM) comp.unix.programmer is it possible to enter text into a command by matching
the partial text in the command with the shell output just
like the autocomplete in vim using ctrl-p and ctrl-n.
example:
$some_cmd
some output
... sinbad
order preserving cksum834 (7/19/2012 4:30:06 AM) comp.unix.programmer
i want to know if there is any cksum/hash function
that can be used to apply cksum/hash on a set of data.
for example if have the set { 23,45,67,89 }. if i compute
the cksum/hash, no matter what order i co... sinbad
count files by type259 (7/6/2012 2:09:49 AM) comp.unix.programmer is there a script that recursively counts all the files by type.
and generates the counts based on type.
cheers
... sinbad
return EAGAIN5105 (8/31/2010 7:36:17 AM) comp.unix.programmer hi, A process running on linux has a unix domain socket open with nonblocking option set. i want the write() on that socket to return EAGAIN. how can i do that. thanks ... sinbad.sinbad(155)
stop gdb542 (6/9/2011 10:19:52 AM) comp.unix.programmer hi, earlier while using gdb i used to press ctrl-c for gdb to give me control of gdb shell to set breakpoints but now if i press ctrl-c it is giving me the following error Interrupted while waiting for the pr... sinbad.sinbad(155)
clearing gnu screen contents298 (10/31/2011 5:37:40 AM) comp.unix.programmer hi, i want to be able to clear the scrollback buffer of a gnu screen with a single key. currently i do the following, :scrollback 0 C-a C :scrollback 1000 basically i set the size of the scrollback buffer si... sinbad.sinbad(155)
reading contents into gnu screen buffer491 (12/6/2011 11:44:44 AM) comp.unix.programmer hi, i know we can copy some text into screens copy buffer by using screen -X readbuf . it takes filename as an input, but is there any equivalent gnu screen command, which takes the text input from stdin. i ... sinbad.sinbad(155)
linker error -lz1061 (6/12/2012 1:52:24 AM) comp.unix.programmer hi,
i'm trying to build git, how to get rid of the following linker error.
LINK git-daemon
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [git-daemon] Error 1
thank... sinbad.sinbad(155)
order preserving cksum834 (7/19/2012 4:30:06 AM) comp.unix.programmer
i want to know if there is any cksum/hash function
that can be used to apply cksum/hash on a set of data.
for example if have the set { 23,45,67,89 }. if i compute
the cksum/hash, no matter what order i co... sinbad.sinbad(155)
bash text search955 (8/8/2012 6:47:06 AM) comp.unix.programmer is it possible to enter text into a command by matching
the partial text in the command with the shell output just
like the autocomplete in vim using ctrl-p and ctrl-n.
example:
$some_cmd
some output
... sinbad.sinbad(155)
use of va_arg1024 (9/3/2012 10:36:56 AM) comp.lang.c is this ok to use va_arg() while calling a function and passing
it as a parameter,look at the following example. while invoking
func_two() does the parameter passing depend on how args are
parsed.
void
f... sinbad.sinbad(155)
passing var args as-is to a function108 (3/25/2013 9:44:24 AM) comp.lang.c i have a common function which takes variable parameters as an argument,
depending on the type (the first arg) i want to call the appropriate
function with rest of the param list, is there any way to do this ... sinbad.sinbad(155)