i have used the functions->getenv,putenv,openlog,closelog,syslog,setlogmaskenviron,…
working on ./dev/tty.
i have used the functions->getenv,putenv,openlog,closelog,syslog,setlogmaskenviron,…
working on ./dev/tty.
I successfully completed following topics,
1.Successfully extracted current environment variable using getenv.
2.Changed current env var using putenv.
3.Extracted all env var using Environ.
4.successfully used syslog,openlog,closelog,setlogmask.
5.working on redirection of portion of output to file.
i use /dev/tty for redirect the stdout for particular portion for the program but it redirect all the stdout statements…
hii..
when we used the environ varible for fetch the envirnoment variable its only
extract the 29 variable but predefine standard environ varible is 157…so wht about remaning…?
I am currently working on Nibble mode of parallel port and we successfully transferred bytes of information from one PC to another using delay method but, facing problems in handshaking(unable to change control bits )….i want some information about handshaking techniques….HELP ME.
sir, i have completed the parallel port driver in NIBBLE mode……But not by handshaking….(by using delay).
in handshaking our status is ->control have reached from peripheral to host but we are not able to receive the control from host to peripheral(for handshaking)…
we have complited our parallel-port driver for nibble and compatible mode
finally….we have completed nibble mode of parallel port….feeling great
in Nibble mode…
-> can we use a single bit in hand_shaking in the parallel port driver..?
-> which bit of the control register should i use to handshake->1.strobe bit, 2.autofeed bit.
Please tell me the procedure of handshaking in nibble mode of parallel port driver….?
hiii
i have work on parallel port nibble mode and i want to know about my parallel port
how many modes support my port?
and currently which mode on my port ???
and any method to change the current mode?
pls help
hows inb and outb work internally?
getting problem in handshaking through strobe pin in nibble mode. how can i do it?
Hi,
I was working on my Driver and got this Error for a function. I checked out other blogs on Internet and it was written that it occurs when you are calling a function before declaring it. But I did declare the function but still this error persists. Any help ??
IThis following c program working fine but i am unable to understand the flow of program. Please explain.
#include
char input[] = “SSSWILTECH1\1\11W\WALLMP1″;
int main()
{
int i,c;
for(i=2;(c= input[i])!=”;i++)
{
// printf(“==c:%d..%ci\n”,c,c);
switch(c)
{
case ‘a’: putchar(‘i’); continue;
case ’1′: break;
case 1:while((c=input[++i])!=’\1′ && c!=”);
case 9: putchar(‘S’);
case ‘E’:
case ‘L’:continue;
defualt: putchar(c);continue;
}
putchar(”);
}
// printf(“\n”);
return 0;
}
I would like to share my very basic usb driver that i had been working on.. i didnt got much time to complete it.. this driver supports my SAMSUNG S3310 usb mass storage device.. the driver dosent do much, it just detects when the device is attached and/or removed..
if anyone wants to continue working on it would be great for learning purposes..
most of my code is simple to understand i put a lot of comments along with the code..
Comments, Suggestions, criticism are always welcome.
If you dont find the link click on gotemp.
The next step could be data transfer using urb.
i declared a float and initialize it to 69.01
now when i print this float it prints 69.010002
& when initialize it to 69.02 it prints 69.019997,
when initialize it to 69.6969 it prints 69.696899,
when initialize it to 696969.696969 it prints 696969.687500,
but when initialize it to 69.696968 it prints 69.696968
why…???