Search Results

Showing results 1 to 10 of 10
Search took 0.01 seconds.
Search: Posts Made By: michinobu_zoned ; Forum: C and child forums
Forum: C Jul 1st, 2008
Replies: 15
Views: 4,186
Posted By michinobu_zoned
No, it's just some self-homework in my Operating Systems class I took in the spring. I didn't do as well as I had wanted to, so I'm trying to work on that now by working out the homeworks and trying...
Forum: C Jun 25th, 2008
Replies: 1
Views: 895
Posted By michinobu_zoned
OKay, this is in response to the same issues I've been dealing with in another thread.

In that one, someone gave me the documentation to the the POSIX calls, but they were vague and weren't too...
Forum: C Jun 25th, 2008
Replies: 4
Views: 1,700
Posted By michinobu_zoned
The UNIX equivalent to Win32 API is POSIX.

"With UNIX, there is almost a 1-to-1 relationship between the system calls (e.g., read) and the library procedures (e.g., read) used to invoke the system...
Forum: C Jun 24th, 2008
Replies: 15
Views: 4,186
Posted By michinobu_zoned
Thanks, I still don't have it figured out, but here's what I have thus far:

int main(int argc, char *argv[], char **envp)
{
type_prompt();
puts("Give me input numbers, each separated by...
Forum: C Jun 23rd, 2008
Replies: 15
Views: 4,186
Posted By michinobu_zoned
How do I read up on exec? What, man exec in the terminal? I think I tried it with fork and it didn't work on my Debian Distro.
Forum: C Jun 23rd, 2008
Replies: 15
Views: 4,186
Posted By michinobu_zoned
Oh, and by the way, I used unistd.h and it didn't change the warning at all.
Forum: C Jun 22nd, 2008
Replies: 15
Views: 4,186
Posted By michinobu_zoned
I appreciate the help thus far, but what exactly is "unistd.h."? What does this library allow me to do?
And, what is the meaning of error " undefined reference to exec"?
Forum: C Jun 22nd, 2008
Replies: 15
Views: 4,186
Posted By michinobu_zoned
Thanks Ancient Dragon. I think, however, that I'll keep my code the way it is until I'm sure that it works.

For right now, I'm wondering why I have the warnings for the following pieces of code:
Forum: C Jun 22nd, 2008
Replies: 15
Views: 4,186
Posted By michinobu_zoned
Yes, you're right. I changed the code:
int main(int argc, char **argv)
{
int sum;
sum = atoi(*(++argv));
sum = atoi(*(++argv));
}
Forum: C Jun 22nd, 2008
Replies: 15
Views: 4,186
Posted By michinobu_zoned
Take the following code:
#include <stdlib.h>


int main(int argc, char **argv, char **envp)
{
int sum;
atoi(&argv[1]);//statement with no effect. Passing argument 1 of ‘atoi’ from...
Showing results 1 to 10 of 10

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC