Search Results

Search: Posts Made By: annie
Forum: Programming 02-21-2006
10,422
Posted By annie
right, what I meant was I was hoping I could use...
right, what I meant was I was hoping I could use something like strncmp() instead that would know how to treat NULL...etc..

thanks again though, I think your latter suggestion is the way I'll have...
Forum: Programming 02-21-2006
10,422
Posted By annie
thanks, was hoping there would be a more...
thanks, was hoping there would be a more "correct" way to do this.
I really thought this would be a more common problem with a lib function I could use in this case. But thanks much for your...
Forum: Programming 02-21-2006
10,422
Posted By annie
strcmp core dumps
hi everyone,

Right now when I do:

strcmp(s1, s2);

i get a core dump because at times s1 or s2 can be nothing so that makes strcmp() core dump.

What is the solution, if at times I expect...
2,511
Posted By annie
creating unique lists from user input
hi all,

I'm trying to resolve a scenario where we prompt the user to enter 1 or more disk names.

From there we would run a command on each disk which would give its location.

This would...
Forum: Programming 10-17-2005
2,024
Posted By annie
thanks so much! that is perfect.
thanks so much! that is perfect.
Forum: Programming 10-17-2005
2,024
Posted By annie
Hi sorry I wasn't clear. I'm actually want...
Hi sorry I wasn't clear.

I'm actually want to pass the string "set=a", "set=b", "set=c", etc....to the function. The "set=" part always stays the same but a, b, c...etc. change which is the part...
Forum: Programming 10-16-2005
2,024
Posted By annie
trying to pass a string
hey guys,

I have a function that I need to pass something like this to:

function(set=a);

so the "set=" part is always the same, but I'm getting the "a" part in a for loop.

so the calls...
Forum: Programming 10-05-2005
9,950
Posted By annie
:p yeah any other UNIX/C boards that are a...
:p yeah any other UNIX/C boards that are a little more active?
Forum: Programming 10-05-2005
9,950
Posted By annie
good point. thanks so much!! this is perfect.
good point. thanks so much!! this is perfect.
Forum: Programming 10-05-2005
9,950
Posted By annie
thanks! but the catch here (which I just...
thanks!

but the catch here (which I just realized) is I need to know if they ever pass just "markid=". This means they want to clear the field....

So with the above suggestion, when they...
Forum: Programming 10-05-2005
9,950
Posted By annie
better way than strtok?
Hi all,

Right now I'm using this but it seems to be a hack:

if (prefix(arg, "mark=")) {
for (markid = strtok(args[0],"="); markid; markid=strtok((char *)NULL, "=")) {...
Showing results 1 to 11 of 11

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