DEV Community

Andrew Clayton profile picture

Andrew Clayton

Long time Linux user and general open source enthusiast. I write C code.

Education

BSc (hons) Computing

All 49 comments

GitHub Workflow, Merge and Rebase

So the "thing" with all the tilde's is vim. You can of course...

Solve it !! In c

Is this your homework!?

Implementation of Coroutine in C Language

I think it's worth pointing out that getcontext(3), setcontex...

Git commit message convention that you can follow!

Heh, you forgot the most important part, the actual message! ...

Recursion in C Programming

Small tip. If you put your main() at the bottom, you can loo...

Should we cover Program.cs?

You should probably ask that over in #csharp

Address Sanitizer not detect leaks in struct`s field array

Hmm, works here $ gcc -Wall -pedantic -Wno-long-long -g -s...

How to push a project to GitHub

Before you can 'git add' you'll need to initialise the reposi...

Single Linked List Using C

In C (and we're talking about C and not C++) 1) It's superfl...

Single Linked List Using C

In C, you shouldn't cast the return value from malloc(3) et a...

You don't have to be a web developer to be a programmer

There was no web when I started programming!

Top 5 advanced C programming concepts for developers

P.S.A Don't cast the return value of malloc(3) et al in C (i...

C Functions Calling Other Functions With Side Effects

Linux Kernel coding style has you covered, slide 11 onwards...

I Wish I Never Learned to Code

To answer the important question! tabs, vim, firefox

The More, the Better — Why Become a Multi-Language Programmer

Hmm, I think you have confused C and C#... I assume you mean ...

8 Reasons Why Git is so Popular

Maybe my comment wasn't clear. I was referring to Mercurial a...

8 Reasons Why Git is so Popular

Having had to use Mercurial in the past, it's just weird. It'...

Emscripten Resolve Header Problem

-ENOERRMSG Maybe if you provided the actual error message yo...

C coding quality tips

For your types you could typedef the POSIX fixed width types ...

I'm an Expert in Memory Management & Segfaults, Ask Me Anything!

OK, firstly, a small nitpick, you weren't getting a segfault ...

What Git/GitHub topics do you struggle with most?

It's called a pull-request, due to the fact you're asking som...

Where is Your Data?

Hmm, OK, an integer can generally be considered atomic as whe...

C/C++ Process Map

here we didn’t assign value of g_a as 0 then how g_a is come...

Where is Your Data?

Hi, In this example static struct { int n_someFuncCalle...

Build ur TCP/IP packet #1

Of course this can be simplified somewhat by using the header...

DLLs or Shared Objects

You might be interested in this paper (from Ulrich Drepper, o...

Implement `tee` CLI in C - C Lang

Of course, Linux has a tee(2) system call (and I mean system ...

30-Day LeetCoding Challenge (Day-1)

OK. I was maybe too subtle. I was really just pointing out...

30-Day LeetCoding Challenge (Day-1)

While I like the XOR trick. Seeing as this is #c, here's some...

Performance testing the filesystem

At this point I feel I should point out fio However, to an...

SQL, strcat(), and more segmentation fault

Cool, no problem!

SQL, strcat(), and more segmentation fault

Quick tip. strcat(3) should generally be avoided, unless you...

Uploading Files to AWS

If you're on Linux, you might want to look at this github.c...

I don't know why React users downvote my StackOverflow questions just like PHP users

I'd down vote this question if I could! It's impossible to...

Top 10 C++ Online Courses and Tutorials for Beginners

I think this would have been better placed under #cpp. Reme...

Kill software for great glory

I've been using Linux for nigh on 25 years, but no, I don't...

Kill software for great glory

Linux (as in the Kernel) and *BSD is about the worst exampl...

How To Move A SVN Project To GIT!

For anything but the most basic repositories, you should pr...

Hub the GitHub wrapper you never knew

A small nit to pick with the opening paragraph. The way it...

GitHub VS GitLab VS BitBucket - Which is Better?

Or just get a server and throw git-daemon on it, chuck in git...

Interfaces

Did you mean to tag this for #csharp ?

A quick question for people who use version control

Your co-worker likely needs some... education...

Looking for developers

Good question! There is quite a bit of assembler though......

Git merge, git rebase, and crawling out of the git hole

Often --amend is exactly what you want. Maybe you need to ...

A guide on commit messages

But will you remember why you made those changes in six mon...

How to know number of tasks can run in parallel in Linux and MacOS

On Linux at least, you can also get this at run-time from C...

Dynamic memory allocation in C

Indeed. I think it is also worth explicitly stating that t...

loading...