Skip to content

Instantly share code, notes, and snippets.

Richard Wiedenhöft Richard-W

Block or report user

Report or block Richard-W

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sizeof.c
#include <stdio.h>
struct foo {
char bytes[1024];
int main() {
struct foo* ptr;
printf("sizeof ptr = %lu\n", sizeof ptr); // 8
Richard-W / asyncqueue.hpp
Created Jul 23, 2015
A thread safe queue that blocks pop when no elements are available
View asyncqueue.hpp
/* Copyright 2015, Richard Wiedenhöft <>
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
Richard-W / hashmap.c
Created Mar 15, 2014
Implementation of a hash map in C.
View hashmap.c
/* Copyright (C) 2014 Richard Wiedenhöft <>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in
Richard-W / finalterm-9999.ebuild
Created Jun 20, 2013
An ebuild for installation of finalterm on Gentoo-Linux
View finalterm-9999.ebuild
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit cmake-utils gnome2-utils
DESCRIPTION="At last – a modern terminal emulator."
You can’t perform that action at this time.