Search Results

Search: Posts Made By: kms
Forum: Programming 05-02-2005
2,746
Posted By kms
Thanks. As u mentioned, it depends on arch.,...
Thanks.

As u mentioned, it depends on arch., comp,... B'se I am also getting diff. o/p on Linux m/c.

Actually, my environment is : Sun OS 5.8 on Sun SPARC arch.

My observation is as follows(...
Forum: Programming 04-30-2005
2,746
Posted By kms
Reg. Local vs Global declarations
Please go through the following two versions of code :-

Version 1 --- string1 and string2 declared as Global variables
The output is :-- (as expected sprintf is overwriting the first byte of...
3
15,198
Posted By kms
In the export DISPLAY statement, try by giving IP...
In the export DISPLAY statement, try by giving IP address like

export DISPLAY=169.168.74.74:0
Forum: Programming 04-25-2005
9,324
Posted By kms
Why it is eating the first character of string2...
Why it is eating the first character of string2 only, if string2 is reserved first 12 bytes or whatever and string1 next 6 bytes

The order of declaration is:
char string2[12];
...
Forum: Programming 04-25-2005
3,516
Posted By kms
In my previous reply I mentioned the reason for...
In my previous reply I mentioned the reason for displaying twice i.e. buffering stdin is on by default, this you can do off

by either setbuf(stdin,NULL) or fflush(stdin)

Even I...
Forum: Programming 04-25-2005
3,516
Posted By kms
standard input is getting buffered. To...
standard input is getting buffered.

To resolve , you should stop stdin buffering. Try the following
setbuf(stdin,NULL) after scanf statement.

Moreover, atoi expects a character...
20,805
Posted By kms
For cp :- read and write system calls For mv...
For cp :- read and write system calls
For mv :- Only the file name in the directory entry will be updated and the pointer to i-node for the file contents remains unchanged.
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 12:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy