# Search:

Type: Posts; User: Asymptotic

Page 1 of 6 1

1. ## Thread: Need tips for working on Open Source projects for Linux

by Asymptotic
Replies
2
Views
1,750

### stahta01, Thanks for your guidance. I...

stahta01,

Thanks for your guidance. I extracted two main pieces of information from your post:

1) Do a more thorough job of reading the provided documentation, help, and readme files.

2) If...
2. ## Thread: Need tips for working on Open Source projects for Linux

by Asymptotic
Replies
2
Views
1,750

### Need tips for working on Open Source projects for Linux

I'm not new to C or Linux. However, most of the projects I've worked on were either my own or at work. In both scenarios, I have full control over the build system used and/or can easily get help.
...
3. ## Thread: Where can I learn C data structures online?

by Asymptotic
Replies
1
Views
1,682

### Where can I learn C data structures online?

I have a pretty good grasp of writing linked lists. However, I want to learn other data structures such as graph, red-black tree, heap, b-tree, etc...

Where is a good place to learn how to...
4. ## Thread: Output parameter practices

by Asymptotic
Replies
6
Views
3,231

### Well atoi() returns 0 if a conversion cannot be...

Well atoi() returns 0 if a conversion cannot be made... What's to say that 0 isn't in fact the converted number? I ran into a similar issue here.

I made these out of necessity in a situation where...
5. ## Thread: Output parameter practices

by Asymptotic
Replies
6
Views
3,231

### Well if input contains "-1" then it won't pass my...

Well if input contains "-1" then it won't pass my str_contains_all_digits() check which only allows chars 0-9. However, if it resolves to VALUE -1 somehow, then I need to handle that case still. This...
6. ## Thread: Output parameter practices

by Asymptotic
Replies
6
Views
3,231

### Output parameter practices

Do you have any useful rules of thumb you follow when writing a function to use output parameters rather than a direct "return value?"

For example, say we have a function like this:

void...
7. ## Thread: How can I support this place?

by Asymptotic
Replies
2
Views
1,843

### Ok thanks! :)

Ok thanks! :)
8. ## Thread: How can I support this place?

by Asymptotic
Replies
2
Views
1,843

### How can I support this place?

I've found this forum to be very valuable. Is there any way that I can help support this forum? I found no real "meta" section or other way to contact the administrators of this site itself on here....
9. ## Thread: signed or unsigned for loop counters?

by Asymptotic
Replies
1
Views
1,412

### signed or unsigned for loop counters?

I've for a while been in the habit of using size_t for my loop counters like this:

size_t i;

for(i = 0; i < 500; i++)
{
//do stuff
}

by Asymptotic
Replies
1
Views
1,685

Say I have:

int sl_find(StringList *pSl, const char *str)
{
if(NULL == pSl || NULL == str)
{
return FAIL;
}
size_t i;
11. ## Thread: I want to get good with bitwise stuff

by Asymptotic
Replies
5
Views
1,871

### One thing I've learned so far is that the...

One thing I've learned so far is that the seemingly complex bitwise stuff, when worked through step-by-step becomes much clearer as to the big picture of "what is going on."

I realized that...
12. ## Thread: I want to get good with bitwise stuff

by Asymptotic
Replies
5
Views
1,871

### Thank you for the suggestions. I've been reading...

Thank you for the suggestions. I've been reading some of the Hacker's Delight book. The mathematical notation is a bit tough for me to "convert to code" in my brain so-to-speak. However, the...
13. ## Thread: I want to get good with bitwise stuff

by Asymptotic
Replies
5
Views
1,871

### I want to get good with bitwise stuff

There is a bit of untapped power in my current C programming skills. I dive into bit manipulation here and there, but there are guys I work with who are machines with it... They can write a program...

by Asymptotic
Replies
1
Views
2,211

I'm trying to gain more experience writing multithreaded code, especially with pthreads.

Occasionally I need to do it for work, but no often enough to really improve my skills to where I'd like to...
15. ## Thread: updating binary file

by Asymptotic
Replies
7
Views
2,644

### zach its hard to tell what you're talking about,...

zach its hard to tell what you're talking about, but it looks like you are overcomplicating the matter.

The concept of "updating a file" is basically just reading the file into memory, modifying...
16. ## Thread: Whats wrong with this code?

by Asymptotic
Replies
6
Views
1,269

### First thing I see wrong is that you have the...

First thing I see wrong is that you have the following code:

if(fp == NULL)
{
printf("ERROR");
fclose(fp);
return -1;
17. ## Thread: Splitting up a bunch of lines for processing

by Asymptotic
Replies
6
Views
2,142

Niccolo,

Thought you might find this article interesting: ripgrep is faster than {grep, ag, git grep, ucg, pt, sift} - Andrew Gallant&#39;s Blog

These are the types of challenges I had been...
18. ## Thread: Splitting up a bunch of lines for processing

by Asymptotic
Replies
6
Views
2,142

### Oh by the way I forgot to mention... Although my...

Oh by the way I forgot to mention... Although my example was around a few megabytes, I'd be actually using this program to handle like 4-10GB files and up to 40GB at a time. I definitely would not...
19. ## Thread: Splitting up a bunch of lines for processing

by Asymptotic
Replies
6
Views
2,142

### Wow, Niccolo thanks for getting my thinking...

Wow, Niccolo thanks for getting my thinking going. I totally understand your experimentation suggestion, and I love experimenting. In fact, this entire project is basically an experiment. But it's...
20. ## Thread: Splitting up a bunch of lines for processing

by Asymptotic
Replies
6
Views
2,142

### Splitting up a bunch of lines for processing

I want to write a program which will open up a large plaintext file with many thousands of lines, split that file into n number of chunks, and then pass each chunk to a different thread for...

by Asymptotic
Replies
16
Views
3,141

zach, 15 hours ago you made a thread called "puzzled by char*" and then you said my response cleared up a lot for you.

22. ## Thread: I am puzzled by char*

by Asymptotic
Replies
6
Views
1,978

### christop you're right, that is a bad habit I'm...

christop you're right, that is a bad habit I'm trying to break. It's not technically "bad" per se, but I agree with you that it's better to limit the places a programmer must change should the type...
23. ## Thread: What is the use of this function?

by Asymptotic
Replies
5
Views
1,865

### Furthermore, your question is this: "i want to...

"i want to know what is the use of this function "

That is a bit concerning because quite literally, the use of the function is to set the console cursor...
24. ## Thread: I am puzzled by char*

by Asymptotic
Replies
6
Views
1,978

### One more thing I wanted to clarify is that when...

One more thing I wanted to clarify is that when you use the char array format like this:

char name2[] = {'t','e','s','t'};

This is not a string because there's a gotcha in C here where if...
25. ## Thread: I am puzzled by char*

by Asymptotic
Replies
6
Views
1,978

### The answer is yes - mostly but not 100% the same...

The answer is yes - mostly but not 100% the same as strings in other languages.

You see, the C programming language constructs are generally less abstracted/high level than other languages such...
Results 1 to 25 of 137
Page 1 of 6 1