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)
Type: Posts; User: John22
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)
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.
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...
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...
Thanks a lot guys.
I solved my problem.
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] =...
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;
...
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...
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...
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...
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...