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.

~1K People Reached
Favorite Forums
Favorite Tags
Member Avatar for yatman

I can't understand why this doesn't work, but when i enable char *s=s1 and use s wherever s1 is used it returns the correct output. char *mystrncat(char *s1,const char *s2, size_t n ) { // char *s=s1; while(*s1!='\0') { s1++; } while(n!=0 && (*s1++=*s2++)!='\0') n--; if(*s1!='\0') *s1='\0'; return s1; }

Member Avatar for Ancient Dragon
0
97
Member Avatar for yatman

I have a function below which is supposed to read from a continuous updating file...by another program. for this reason I used a fileptr int to keep track of the last known good read so this index value is updating correctly but it is not being used by getline. and …

Member Avatar for vijayan121
0
156
Member Avatar for yatman

Hi, I have an application which fills a text file continuously and my program monitors that file for a string match continuously. My search function is fine..but Since the file keeps on growing is there a way I can read from the position I left off last or do I …

Member Avatar for Clinton Portis
0
65
Member Avatar for yatman

I have a structure type like the one shown below, I use it to store the output of my program and these structures are stored in a structure vector. Now I would like to print out the structures stored in the vector in ascending order of int Time_IF. struct Input …

Member Avatar for JasonHippy
0
95
Member Avatar for yatman

I have a file reg.txt which has 32 bit binary values like below 00000000000000000000000000001000 00000000000000000000010100100000 00000000000000000010000000000000 00000000000000000000000000000000 00000001000000000001000010010000 00000000010001000010000100100100 00000000001001000100010000000000 is there a way to read the 32bit binary value and store in an int?

Member Avatar for donaldw
0
370
Member Avatar for yatman

Hi, I am trying to write strings to a file line by line and trying to format the output so that the alignment is proper. output should be it should appear in the output file as david 10 15 16 sam 11 15 16 but appears as david 10 15 …

Member Avatar for yatman
0
167
Member Avatar for yatman

Hi, I am writing a program which needs to extract data from a file. Sample file Adder: 4, yes Mult: 6,yes .... i want to extract this info into a structure { Int interval (4 should be entered here) bool pipeline (if yes then 1 else 0) } i read …

Member Avatar for Ancient Dragon
0
78