Search Results

Search: Posts Made By: mgyeah
2,379
Posted By Corona688
That's weird that it'd be complaining about no...
That's weird that it'd be complaining about no 'swap', driver.c definitely doesn't use it from what I can tell. Maybe that's leftover junk from a previous build, try cleaning out your .o files. See...
3,977
Posted By jim mcnamara
Where is the code, not the one-line declaration? ...
Where is the code, not the one-line declaration?
for example:

void write_error(char *msg)
{
fprintf(stderr, "Error msg: %s\n", msg);
}


You have to compile that as well. And

char...
1,619
Posted By bakunin
You have commented the only place where "sum" is...
You have commented the only place where "sum" is incremented - small wonder it remains 0 all the time. ;-))

bakunin
1,619
Posted By bakunin
That is no for-loop at all, but a if-then-else....
That is no for-loop at all, but a if-then-else. In standard C

<condition> ? <command1> : <command2>

is just an abbreviated way of writing

if( <condition> ) {
<command1> ;
} else {
...
880
Posted By sgruenwald
Please follow this URL for info provided by Neo: ...
Please follow this URL for info provided by Neo:

https://www.unix.com/members-only/111844-current-bits-system-awards-alpha-release.html
3,490
Posted By disaster
First of all, you make a common mistake...
First of all, you make a common mistake (http://en.wikipedia.org/wiki/C_file_input/output#EOF_pitfall): getchar() returns an int and not a char. This may cause errors in the != EOF condition
Ok, so...
3,490
Posted By nancyparrishnrs
Payroll Solutions
First of all, you make a common mistake: getchar() returns an int and not a char.
-------
Nancy

---------- Post updated at 02:20 AM ---------- Previous update was at 02:19 AM ----------

I...
2,137
Posted By disaster
I don't understand why you put your...
I don't understand why you put your if(IS_WHITE_SPACE) at the end.
Also getchar returns the integer represantation fo a char. I always cast them.
So my approch would be:

int c;

while((c =...
3,317
Posted By Perderabo
First, I must say that year professor has thrown...
First, I must say that year professor has thrown you a curve. As this page (http://en.wikipedia.org/wiki/Julian_day) says: The description of the algorithm given is clearly day-of-year, not a real...
Showing results 1 to 9 of 9

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