Okay, so I'll just wait to hear from a mod. I didn't want to put it in the C forum, so I figured it was fair game for "general discussion".
Type: Posts; User: gzhispanic
Okay, so I'll just wait to hear from a mod. I didn't want to put it in the C forum, so I figured it was fair game for "general discussion".
Yes, obviously.
My labmate here has tried to sign up (myblock is his account name), but he can't do ANYTHING until he gets the account activation in his email. He can't even PM a MOD to have this email sent. He's...
Actually, I found this reference while searching for stuff on lazy allocation and calloc/malloc in Linux. I saw it, saw he made an incorrect statement *while simultaneously being pedantic* and had to...
I actually stumbled upon this when looking up something about when pages are actually assigned to frames in Linux. I didn't actually go back because I remembered this discussion.
"Note that too,...
What design paper have you read for the compute node kernel?
http://cboard.cprogramming.com/linux-programming/119252-lazy-allocation-*alloc.html
Compute Node Kernel, a linux kernel derivative that's used extensively on IBM Blue Gene supercomputers, and even...
Export.. interesting. Is there a way to make different targets from within the same make instance?
I'm sure this isn't the best way to do it, and tools like autoconf and cmake would be better, but I really just want something quick and dirty.
Basically, I have code in a distributed system...
Okay, but your last solution requires defining a new struct. I'm just not sure why that's needed, as lists and queues are often "recursive" types. I guess I thought there would be a way to do it...
Hi,
I am trying to understand how the macros work in sys/queue.h, but from looking at the online tutorials, I still seem to be missing something.
I am modifying some code that exists already,...
That works. Thanks.
Hi,
I want to check if there are files present in a directory that match a certain regex, i.e., "reader_contact_info_%d", and if there are, I'd like to get the names of these files, perhaps the...
Thanks everyone for the help! It seems like there are quite a few strong solutions to try out. Awesome! I will be working on this tonight and tomorrow, so I'll post here what has happened.
This...
Okay, I have to try this. This looks really good, actually, and running the code, I think it works as expected! I am just curious, what are askips and bskips doing here?
Thanks so much!!
Thanks for the reply. It will take me a bit to wrap my head around this!
The library and API themselves are written in C, but the codes that use it can be C/C++, Fortran, Matlab, Java.. I think...
So, I have a question, and it's probably a stupid one. If an array is passed to you as just a pointer (i.e., int *array) as in this case, would X[1] then be the value 20 from my example?
So...
Hmm, actually, I think I understand how this works. I think you might be on to something. Let me try to wrap my head around this a bit more. I think this is on the write track!!
You are right, 50,60,70,80.
I am not sure though how I would code the X[x] idea to work for any number of dimensions.
Edit: Duplicate post.
Thanks for the quick reply! I agree, recursion is definitely the way to go here.
As to your first question: When the arrays get passed into the library, they're just standard C arrays. My...
Thanks for the reply. However, I don't fully understand what you mean. The real code isn't restricted to just 2D arrays; I just wrote it as such because it's an easier example to put in text.
Hi all. I'm a biologist by training but now work as a "computational biologist" on an open-source science project (written in C) for a national lab, so I apologize in advance if this question has an...