Search:

Type: Posts; User: John22

Search: Search took 0.00 seconds.

  1. Thread: Device problem

    by John22
    Replies
    0
    Views
    1,816

    Device problem

    Hi,

    I am writing information in to packets.

    Here is my part of code:

    for(ii=0; ii<6; ii++)
    {
    sprintf(file,"/dev/rtl%d",ii)
    fd = open(file,o-RDWR,0)
  2. Thread: Simple Question

    by John22
    Replies
    3
    Views
    1,235

    Hi Guys, Thanks for your response. I solved my...

    Hi Guys,
    Thanks for your response. I solved my problem. Instead of using strcat and strcpy, I used sprintf(buff,"%s/file1",argv[x]); for all files and it worked fine.

    Thanks.
  3. Thread: Simple Question

    by John22
    Replies
    3
    Views
    1,235

    Thanks for the suggestion. I tried that. ...

    Thanks for the suggestion.

    I tried that.

    for Store1, it gives me
    Store1: No such file or directory

    for others, it doesn't give me any message.

    I checked again in that directory. File is...
  4. Thread: Simple Question

    by John22
    Replies
    3
    Views
    1,235

    Simple Question

    Hi,

    In my program, I am using argument. I am entering id number and directory path for the files as an argument. I am using this argument and concat to filename. Then I will look for file, if it...
  5. Replies
    7
    Views
    2,541

    Thanks a lot guys. I solved my problem.

    Thanks a lot guys.
    I solved my problem.
  6. Replies
    7
    Views
    2,541

    Hi Salem, Yes, I want convert time1 format...

    Hi Salem,

    Yes, I want convert time1 format from YYYYDDDHHMMSSTHT to YYMMDD (YearMonthDay).

    I got the time2 format.

    strcpy(tmp,bcd(mytype.time2));
    store[0] =...
  7. Replies
    7
    Views
    2,541

    Thanks Salem. It worked. I need to little...

    Thanks Salem. It worked.

    I need to little change my program. I added another time (time2) in my structure.


    struct {
    char emapty[4];
    unsigned long id;
    ...
  8. Replies
    7
    Views
    2,541

    Hi Salem, I used your code, but I am getting...

    Hi Salem,

    I used your code, but I am getting warning. Anyhow, can I get rid of it?


    "Test.c", line 100: warning: argument #1 is incompatible with prototype:
    prototype: pointer to...
  9. Replies
    7
    Views
    2,541

    Hi, In this program, I also want to add path...

    Hi,

    In this program, I also want to add path name(directory) where binary file is.

    Rightnow, I have binary file in same directory where my c program is.

    I wanna type pathname (directory for...
  10. Replies
    7
    Views
    2,541

    Hi Salem, It worked fine. Thanx. However, I...

    Hi Salem,

    It worked fine. Thanx.
    However, I have found that year is in A.D format. I have no idea about the A.D. format.
    In my binary file, first record's year is 1996. But If I convert to...
  11. Replies
    7
    Views
    2,541

    Reading data from a binary file

    Hi all,

    I am trying to read time from a binary file, but I couldn't get the right value. Each record is 112 bytes in binary file.

    time format is YYYYDDDHHMMSSTHT
    YYYY = Year
    DDD = Day of the...
Results 1 to 11 of 11