First and foremost, this is not a homework for your information. I'm just new to using c-shell programming and I just wanted to make my life easier @ work.
Say, the file contains the following:
In the above example,
The First, Third and Fourth Fields of Rows (1 & 2) are repeated and so with Rows (4 & 8) and Rows (5, 6 & 7).
I want my csh script to check for void File No. If the first, second and third fields are repeated, the former shows me the void file/s. In this example, File Nos. 1, 4, 5 and 6 are void. File 2 is the good file and so with File 7 & 8. Files 3 & 9 are good files as well since they are not repeated.
Thanks in Advance.
Last edited by Perderabo; 11-03-2005 at 05:42 PM..
Reason: add code tags for readability
I'm new to Csh script programming and I have not really attended any formal unix training course whatsoever. I'd really been trying hard to solve the above example but to no avail. I tried using "foreach" but I'm not really sure how this command works. I've read the man foreach but it didn't give much help either. Could someone please give me an input?
I have a function to which I will pass a struct ID and it will return me a string.
I will pass a pointer to store the name string and that pointer will be allocated memory by the function called.
int ConvertIDToName(void *id, void *name, size_t *size)
{
int status = 0;
... (5 Replies)
Earlier I had one structure C
typedef struct c
{
int cc;
}CS;
I used to call a library function say int GetData(CS *x) which was returning me the above structure C with data.
GetData(CS *x)
Function call used to be like:
CS CSobj;
GetData(&CSObj);
Now there are two... (12 Replies)
hi guys!
Is there such a thing as double void pointer dynamic allocation?
And if so is it something like this?
int n;
void** a;
a=malloc(n*sizeof(void*)); (12 Replies)
I have two or more linked lists that have the same names for their "next". For example,
struct server_t {
sockaddr_in * sin;
server_t * next_;
}
struct player_t {
char name;
player_t * next_;
}
How can I get a function to take in either type and manipulate the pointers?
I... (3 Replies)
I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them)
Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
What is the difference between f(...) , f(void),f()
I know that f(void) doesn't take any parameters, but what about f() and f(...) Does the last call of function even exists? (2 Replies)
Hello all
im trying to build function that will return void function pointer
what is mean is ( not working )
the main function
void * myClass::getFunction(int type){
if(type==1)
return &myClass::Test1;
if(type==2)
return &myClass::Test2;
}
void myClass::Test1(){... (1 Reply)