Search:

Type: Posts; User: c_geek

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    2,100

    Yes it is a 32 bit long long id; then i am...

    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);...
  2. Replies
    12
    Views
    2,100

    Ok so i shold define my temp array like this ...

    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...
  3. Replies
    12
    Views
    2,100

    Hi What should my temp_array would be? would it...

    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
  4. Replies
    12
    Views
    2,100

    strcat function parameters

    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...
  5. batch file introduction in multiprocesses program

    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...
  6. An example of what i am trying to accomplish here...

    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...
  7. Doesn't this format only display the total...

    Doesn't this format only display the total incremented number? i dont want to have that....
  8. printinga number while being incrementing on the screen

    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...
  9. Replies
    1
    Views
    2,366

    Hi All please take look at it, i am...

    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
  10. Replies
    1
    Views
    2,366

    Reverse Engineering on a Download file

    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...
  11. Replies
    1
    Views
    1,180

    Read a Compiled file of an RTU

    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...
  12. Replies
    14
    Views
    19,635

    Thanks for your answer, few comments on it, i...

    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,...
  13. Replies
    14
    Views
    19,635

    How can i read characters (with fgetc) backwords?...

    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...
  14. Replies
    14
    Views
    19,635

    OPen a file and read it from the last line

    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,...
  15. Replies
    48
    Views
    4,913

    So it means i dont need to have those two...

    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?
  16. Replies
    48
    Views
    4,913

    Thanks Mat for the code, one last thing where are...

    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
  17. Replies
    48
    Views
    4,913

    It looks pretty close to me,except the last entry...

    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...
  18. Replies
    48
    Views
    4,913

    Does the prints of the date/time stamp make sense...

    Does the prints of the date/time stamp make sense in my previous reply?
  19. Replies
    48
    Views
    4,913

    Here are about 12 date/time prints in 32 bits...

    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
  20. Replies
    48
    Views
    4,913

    16 Aug 2007 looks right to me as those files...

    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...
  21. Replies
    48
    Views
    4,913

    Hi guys I appreciate all of the...

    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...
  22. Replies
    48
    Views
    4,913

    These files are not that old at all. I believe...

    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...
  23. Replies
    48
    Views
    4,913

    Here are the results of abou 5 or 6 print outs...

    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
  24. Replies
    48
    Views
    4,913

    Even if we assume that the date format would be...

    Even if we assume that the date format would be in mmddyyyy, what would be right way to print the numbers in this format.
  25. Replies
    48
    Views
    4,913

    I think the date format is julian date format.

    I think the date format is julian date format.
Results 1 to 25 of 34
Page 1 of 2 1 2