When learning assembly for the first time you're not learning the registers or the instructions. All of that can be easily accomplished with reference cards.
You should be learning how memory...
Type: Posts; User: Sysop_fb
When learning assembly for the first time you're not learning the registers or the instructions. All of that can be easily accomplished with reference cards.
You should be learning how memory...
When I see 'a-h' I think of pattern matching immediately
printf
You'd probably turn Earth into a larger version of the moon only crispier.
Or the sheer magnitude alone would ignite our atmosphere and turn Earth into a mini sun.
Just get some anti-matter and...
http://www.htmlgoodies.com/beyond/webmaster/article.php/3473261
Here's a simple introduction to DNS.
There are free domain names still around such as dyndns.
Since it appears this is what you're...
What do you think realloc returns?
What are you referring to? Casting the return value of malloc?
C does type coercian from void to any other type automatically so casting malloc only has the potential of evil side-effects.
I don't see why using a pointer that's already pointing to allocated memory to store the return value of a new malloc call would cause malloc to fail.
Granted it's not a good thing since you'll...
char* is a pointer not an array, char* name[30] is an array of pointers if you want to use a pointer then allocate memory for the pointer to point to so you can put data into the allocated memory, or...
True but what happens if the line exceeds the array limits? It would continue to pull in data until it reached the new-line character each time doing a call to fgets and incrementing the counter each...
You're probably just compiling that code as C++ code.
Or it's defaulting to using C99 standard as I think that's legal in C99.
1) When I picked up C I had about 6 years experience on a unix environment doing mostly scripting, to much computer experience in general to recall.
2) You won't be for years upon years, I've been...
Oops should of looked at the code closer before posting -.- sorry
As well as getting into the habbit of checking that the pointer doesn't equal NULL before trying to utilize it.
Granted from getting input from the user there should be a new line character but...
So you basically need to read in a file and append it to another file? Why don't you just put fgets in a while loop until EOF and put each line you get into the other file.
Or in linux it would be...
You can check out this website as well
http://www.gamedev.net/reference/articles/article1563.asp?the_id=69
return 0;
That's causing your program to end..
Also watch your bracket use, here's a sample to compare.
/*mavrakp1.c */
/*Created by Colleen Mavrakos 2/7/2006 */
Consider researching the strchr() function to find a certain character in a character array.
The bottom line being...
While most of the popular operating systems will automatically reclaim the memory your program has allocated for itself, it's not a requirement of the operating system and...
You can also use sprintf
sprintf(cpr2, "%.*s", 5, cpr1);
Or strncpy or multiple different things depend on the circumstances.
if(s[i]=' ')
Right off the bat that's an assignment in a conditional expression.
And main returns an int
Get the length of the string - 1.
And just implement that into a for loop with another variable initialized to 0 and increment that while decrementing the length.
Using a temp variable you can just...
How so all I got out of it was he wanted an easy way to share files between his PC and his laptop. Which all you'd need would be a crossover cable :)
On 'syncing' the hard drives'... in regards to...
Get yourself a docking station a KVM and a crossover cable :)
./ is not a command it's merely specifying the path of the target you want to reach.
If whatever directory you're currently in isn't specified in the PATH environment variable it won't find it...