Yes it is a 32 bit long
long id;
then i am doing something you suggested "sprintf(array_temp, "%ld", id)" and then using the array temp in my strcat function like "strcat(file_name, array_temp);...
Type: Posts; User: c_geek
Yes it is a 32 bit long
long id;
then i am doing something you suggested "sprintf(array_temp, "%ld", id)" and then using the array temp in my strcat function like "strcat(file_name, array_temp);...
Ok so i shold define my temp array like this
char temp_array[11];
and then in my strcat function i should use like this
strcat(file_name, temp_array);
is that right, i am trying to do...
Hi What should my temp_array would be? would it be 4 bytes long such as temp_array[3] or something else, sorry i am pretty new in C language.
Thanks in advance
Hi All
I am trying to do the following:
strcpy(file_name,"abc_");
strcat(file_name,id);
strcat(file_name, ".txt");
The id variable is of type long coming from the command line...
Hi All
I have a process (A), written in C language, which talks to the another process (B) to get the data from it. Process A has different cases to do the services. For example, one of...
An example of what i am trying to accomplish here is, if you install a software and the progress bar increases and the % number being incremented on the screen displaying the % complete of...
Doesn't this format only display the total incremented number? i dont want to have that....
Hi All
How can i print/display a number being incremented on the screen. For example
a variable 'i' is being incremented like this i = i+224, i would like to print this number on the...
Hi All
please take look at it, i am hoping to have a dialgue going on this forum, sothat i can get some more ideas and might be able to pull out something out of it.
Thanks in advance
Hi All
I am trying to do some reverse engineering on a hardware(Bristol Babcock 3310). I some how managed to find out the dump of the software that is used to download a (compiled) file...
Hi All
I have a compiled file of some of the RTUs in the filed, i need to copy that file into a buffer and then used that buffer to move the file into the RTU. The file is about 50Kbyte...
Thanks for your answer, few comments on it, i increment it by 0L,1L,2L etc, i am already at the end of the file, by incrementing this, i will be going in forward direction not the backward direction,...
How can i read characters (with fgetc) backwords? I open a file, seek it to the end of the file (with fseek(fp,0,SEEK_END)) and then start reading backwords untill i encounter ','.?
Is there a way...
Hi All
I am having a problem here. I have a file which saves the data as follows:
Thu 01/24/2008 8:59:27.42 - entry, aa_1, SYS_ADMIN
Thu 01/24/2008 9:01:45.02 - exit, aa_1,...
So it means i dont need to have those two functions, i can just simply copy the first 4 bytes into the time_stamp union and i wil be alright?
Thanks Mat for the code, one last thing where are you exactly calling the "byteswap" function. I don't see a call to that function in either main or outside main. Thanks once again
It looks pretty close to me,except the last entry "2006-03-12 09:35:29 ( i am assuming that it is in the format of yyyy-dd-mm hr:min:sec) i was expecting to have the day changed not the year.
Also...
Does the prints of the date/time stamp make sense in my previous reply?
Here are about 12 date/time prints in 32 bits long variable t:
Row Date is:00000000
Row Date is:1fa42c33
Row Date is:1c202c33
Row Date is:189c2c33
Row Date is:15182c33
16 Aug 2007 looks right to me as those files (where i am reading from) can be that old. I have tried to print the first 4 bytes of the first three rows in the file, here are they:
Row 1...
Hi guys
I appreciate all of the work you have done for me. As you might have noticed, i am pretty novice in this and i am right now absolutely lost. Could you tell me what am i...
These files are not that old at all. I believe from this year and may be couple of months old. And the data i am trying to read is actually a hourly array data, which gets a new time stamp after...
Here are the results of abou 5 or 6 print outs for date
something like dd mon dd hr:min:sec yyyy
Sat Mar 02 04:08:32 1996
Tue Apr 19 13:08:32 1994
Fri Jun 05 21:08:32 1992
Even if we assume that the date format would be in mmddyyyy, what would be right way to print the numbers in this format.
I think the date format is julian date format.