No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Nothing
- Interests
- Listenig to music, Goooogling
7 Posted Topics
Hi all I have a function and it is being called by many other functions. Is there any method or macro which can return the function name which calls the current function. EX: [code] int a() { pintf (<required a macro for printing the caller function name>); /* do operation … | |
Hi there, I want to check whether a file is a link or not. Eg: I have a directory structure as follows: mkdir -p abc/bcd/cde/def touch abc/bcd/cde/def/file cd abc/ ln -s bcd link Now, abc/link/cde/def/file is actually not a file. Its a link Now I want to remove this file … | |
Please help me: Following is my program: [CODE]main() { char str[] = "This is //20"; char c[10], *k; int num=0; sscanf(str, "%s%[^//]*//%d",c, &num); printf("%s \n %d \n", c, num); }[/CODE] My intention is to get the first string and last number. I want to ignore the remaining text. There is … | |
Hi, I am allocating memory using [B]malloc()[/B] and then I am filling the aloocated memory with "0" using [B]memset()[/B]. The combination of [B]malloc()[/B] and [B]memset()[/B] are being called many times in my project. After adding memset() function affecting my project's performance. So I am searching for the alternative for the … | |
Hi there, I want to get the process name from the process id (pid) in C/C++ program. Please help me. I am using linux machine. | |
Hi All.. I have developed a tool in C++ and I want to check the performance of the tool using [COLOR="Red"]callgrind[/COLOR]. For the first time I have executed my tool with different input sets and I have taken the number of instruction cycles as the referance for further usage. Following … | |
Hi I am tryibg to check for presance of a string in a big string. I tried as follows: [CODE]IS_VECTOR_TEST_CASE=`grep AIV "$PWD"` if [ "$IS_VECTOR_TEST_CASES" = "" ] then #do something else #do something fi[/CODE] This always giving me as if [ "$IS_VECTOR_TEST_CASES" = "" ] is true with following … |
The End.