pointers ...C language
I need your help:
name1 < name 2 > name 3
I m writing a problem that place:
a pointer on name 1
a pointer on name 2
a pointer on name 3
I have been working on it more than 24 hours but in vain :cry:
what i did is strcmp with < if it is place ptr 1 (it...
ok, how can i do it
i need to take the resutls of the first one (sort < source) which logically going to be on the screen and send it to a file name called (> destination)
How can this b done?
my target is to do the following
sort < source > destination
I know how to do sort < source:
fd = open(source, O_RDWR | O_CREAT, mode);
if(dup2(fd, 0) < 0)
close(fd);I know how to do sort > destination:
fd = open(source, O_RDWR | O_CREAT, mode);
if(dup2(fd, 1) < 0)
close(fd);I read the man...
Well I was able to write the codes
but it will execute one single command
ex:
<
or
>
or
|but it cannot execute 2 at the same time
for ex if i input
sort>sorted<unsorted
it cannot b executed
i ve to combine them
is there a quick way ?
I m using the MQ 307 and not 306
No there s no error
But they posted only the datasheet of the MQ307A and said that the differebce is in the heater voltage which is 3V instead of 0.9V but didn't specify what to use instead of 0.2V (low heater voltage ) ...:(
ANyone knows??
Well I tested the MQ307 which requires a 3V instead for the 0.9V for the heater and i got these results :
in CO:
at t=0 and no heater voltage applied it was 1.74v
heater at 0.6v (for 120s) 1.84v ---- 1.82---- 1.81--- 1.8 ----- 1.73 ---- 1.57
heater at 3v (for 30 sec) 1.3v ---- 1.24...