Search Results

Search: Posts Made By: l flipboi l
3,097
Posted By l flipboi l
gotcha, just figured it out. thanks, Corona!
gotcha, just figured it out. thanks, Corona!
3,097
Posted By l flipboi l
great, thanks! ---------- Post updated at...
great, thanks!

---------- Post updated at 12:36 PM ---------- Previous update was at 11:20 AM ----------

one last question, how do I store an entire line per array index?

say i typed "dog is...
3,097
Posted By l flipboi l
Thanks, fpmurphy! The one issue i have is...
Thanks, fpmurphy!

The one issue i have is that the input is coming from char *av, so only av[0] is storing the inputs. I guess what i'm trying to achieve is that is it possible to hardcopy...
3,097
Posted By l flipboi l
storing strings in C
i'm trying to figure out how to store strings into an array, can someone help me figure it out?

i would like to store the following for example:

array[0] = "dog"
array[1] = "cat"

the...
4,235
Posted By l flipboi l
its a sun. I figured it out, it's just...
its a sun. I figured it out, it's just system("name");

Thanks!
4,235
Posted By l flipboi l
system calls in C
Hello,

how would i be able to call ps in C programming?

thanks,

---------- Post updated at 01:39 AM ---------- Previous update was at 01:31 AM ----------

here's the complete system call,...
3,356
Posted By l flipboi l
ah okay, thank you.
ah okay, thank you.
3,356
Posted By l flipboi l
okay! thx... is write() = 27 just to make...
okay! thx...

is write() = 27 just to make sure that 27 bytes are written?

to make sure it doesn't return -1?
3,356
Posted By l flipboi l
write() system call arguments
Hi,

I'm trying to understand the arguments from this system call, can someone help me figure it out?

write(1, "/home/nick/11sp/fred\n", 27/home/nick/11sp/fred) = 27

for argument 1, i know it...
Forum: Programming 03-05-2011
1,787
Posted By l flipboi l
pthread()
I have a while loop like so:


while (counter (file1));


how can I pass that into a pthread_create()?

I was thinking ...


while(pthread_create(&path, NULL, counter, file));


is that...
1
1,702
Posted By l flipboi l
fork()
I'm trying to run a simple test on how to use fork(), i'm able to execute the child process first then the parent, but how can I execute parent then child..?

Thanks!
5,370
Posted By l flipboi l
struct winsize
what is struct winsize used for?

i tried looking it up, but no luck.
5,172
Posted By l flipboi l
using SIGCHLD
I'm testing out how to use SIGCHLD and I had a question about intercepting the signal and executing an action in the signal handler.

signal(SIGCHLD,countdown);

What I'm trying to achieve is be...
2,650
Posted By l flipboi l
thanks!
thanks!
2,650
Posted By l flipboi l
I was thinking in terms of C programming. Is...
I was thinking in terms of C programming. Is there a struct I can declared to retrieve the attributes?
2,650
Posted By l flipboi l
/dev/tty find last modified time
what can I use to find the last modified time of a /dev/tty ?
1,282
Posted By l flipboi l
usage of kill
i'm writing a code that passes the shells process id and the time set till the pid is killed.

the argument from the terminal looks like this:
./timeout $$ 4
now $$ specifies the shell pid, how...
Forum: Programming 02-03-2011
2,131
Posted By l flipboi l
thanks
thanks
Forum: Programming 02-02-2011
2,131
Posted By l flipboi l
creating soft links
i'm trying to write a c code to copy a soft link over to a specified directory. Is it possible to do this without using symlink()?

if so, what can I use?

Thanks!
2,286
Posted By l flipboi l
tabbing is too far, i need to put only 4-5 spaces
tabbing is too far, i need to put only 4-5 spaces
2,286
Posted By l flipboi l
string formatting
how can I format this so the output looks like so:
811420 -rwx------ 1 cw33221 student 8952 Jan 26 2011 a.out

I keep getting this

811420 -rwx------ 1 cw33221 student ...
2,647
Posted By l flipboi l
sorry, I think i'm getting things mixed up. ...
sorry, I think i'm getting things mixed up.

I understand what mallocs does now. Thank you!
2,647
Posted By l flipboi l
Does malloc allocate space for output files? ...
Does malloc allocate space for output files? That's what I had in mind, I was trying to dynamically allocate space from a read input file. It seems that malloc would be used only to create...
2,647
Posted By l flipboi l
Malloc and File Creation
How can I use malloc with copying/creating files?

Is this the correct way?

I'm a bit confused...


int in_fd;
int *out_fd;
char buffer;



in_fd = open(av[1], O_RDONLY);
...
1,076
Posted By l flipboi l
checking for "." and ".."
is this the correct way to check for "." and ".." ??? All the screen prints out when scanning a directory is

output:

dot
dot
dot
dot
dot
dot


while((direntp = readdir(dir_ptr)) !=...
Showing results 1 to 25 of 34

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