Skip to content

Instantly share code, notes, and snippets.

View utkuboduroglu's full-sized avatar

Utku Boduroğlu utkuboduroglu

View GitHub Profile
@utkuboduroglu
utkuboduroglu / Quirks of C.md
Created September 11, 2018 07:34 — forked from fay59/Quirks of C.md
Quirks of C

Here's a list of mildly interesting things about the C language that I learned over time. There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.

1. Combined type and variable/field declaration, inside a struct scope [https://godbolt.org/g/Rh94Go]

struct foo {
   struct bar {
       int x;
   } baz;
};
@utkuboduroglu
utkuboduroglu / Execve-Stack.nasm
Created March 14, 2018 16:58 — forked from securitytube/Execve-Stack.nasm
Execve /bin/sh using the Stack Method
; Author: Vivek Ramachandran
; Website: http://securitytube.net
; Training: http://securitytube-training.com
;
global _start
section .text
_start: