Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~21.3K People Reached
About Me

Nothing

Interests
Listenig to music, Goooogling
Favorite Forums
Member Avatar for kandarpa

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 …

Member Avatar for बालाजी
0
7K
Member Avatar for kandarpa

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 …

Member Avatar for Watael
0
207
Member Avatar for kandarpa

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 …

Member Avatar for deceptikon
0
258
Member Avatar for kandarpa

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 …

Member Avatar for N1GHTS
0
3K
Member Avatar for kandarpa

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.

Member Avatar for triumphost
0
11K
Member Avatar for kandarpa

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 …

Member Avatar for kandarpa
0
91
Member Avatar for kandarpa

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 …

Member Avatar for kandarpa
0
107