Howdy Quzah,
Yep, I see your *point. A void pointer is useless overkill.
The whole thing was an exercise of my own to use void pointers, void functions, and typecasting.
Thanks again for...
Type: Posts; User: crypto_quixote
Howdy Quzah,
Yep, I see your *point. A void pointer is useless overkill.
The whole thing was an exercise of my own to use void pointers, void functions, and typecasting.
Thanks again for...
Howdy,
Just so happens, I'm working on getting a better understanding of pointers right now myself- so your question
inspired me to hack the following:
/*code to pass a pointer to a...
Howdy,
First you should know: I'm willing to pay $.
I've been studying C - mostly from Sam's Teach Yourself C for Linux Programming in 21 Days(years ?) for a couple of years now. I'm starting to...
Testing for one is a true or false test. Yes, the loop must start at 2, because the of using the modulus
operator. "is_prime = 1; " is merely an arbitrary starting point of a true or false...
Hello lleon,
The program you posted is clever. I think the the "is_prime = 1" and "is_prime = 2" functions as boolean
test operators (someone please correct me if I'm wrong.).
I found a cool...
Thanks, however if using (number % a) == 0 should only tell me whether or not the number is divisible
by a whole number in such a way that it will not leave a remainder. If the number is prime the...
What is the test for.
Clarify that, and try nesting an "if" loop to achieve the desired result.
Good luck.
Hello everyone,
I finally figured out how to write the code I originally thought I was posting
on the weekend.
The purpose of this small program is to identify prime numbers.
It seems to...
Sam's Teach Yourself C for Linux Programming.
Well presented and good explanations for learning C.
Out of print but still findable on amazon.com
That has to be the fastest response I have ever had on a post.
(less than 5 minutes)
Thanks!
Hello everyone,
I'm learning about code used to open files.
I got the following code from "Sam's Teach Yourself C for Linux Programming"
I don't understand why he set filename[ ] and mode [...
That worked!
Thanks.
Hello everyone,
I'm trying to learn to use gdb v5.3-25mdk (Mandrake Linux).
I wrote a test.c file according to instructions I found in "Sam's Teach Youself
Linux Programming in 24 Hours"
...
Okay,
Thanks everyone.
I'll try the functions route.
Beating my head against my desk trying to understand how linked lists work.
(all those pointers pointing to pointers, then pointing to the same pointer that
started the pointing....)
The tutorial...
Thanks.
Those were good starting points. I'll track further reviews/prices etc.
Must limit the total yards/pounds of books on Linux!
All further recommendations are appreciated.
Hello all,
I've been learning C from a couple of different books.
(Teach yourself C for Linux Programming in 21 Days and C Programming
in Easy Steps)
I'm compiling using gcc v 3.3.1 on...
Yes,
In the main() it the on line 29 the print_strings() is called:
print_strings(lines, number_of_lines);
Also, the prototype for print_strings() is declared befor main():
Hello,
I'm learning C via Sam's Teach Yourself C for Linux Programming in 21 Years...
I mean Days.
I typed out the below code on my laptop and compiled it three times with GCC with the following...