Skip to content

Instantly share code, notes, and snippets.

@tommai78101
tommai78101 / unicode.c
Last active June 4, 2024 20:41
UTF-8 to UTF-16 one-way conversion, written in C
#include <stdio.h>
#include <stdlib.h>
#include <uchar.h>
#include <locale.h>
#define __STD_UTF_16__
//Pointer arrays must always include the array size, because pointers do not know about the size of the supposed array size.
void utf8_to_utf16(unsigned char* const utf8_str, int utf8_str_size, char16_t* utf16_str_output, int utf16_str_output_size) {
//First, grab the first byte of the UTF-8 string
@beaucarnes
beaucarnes / index.html
Created June 4, 2017 10:28
Linked List
<img src="https://people.engr.ncsu.edu/efg/210/s99/Notes/LLdefs.gif" alt="" width="600px"/>
@chrismcfee
chrismcfee / Entire Guide
Last active March 1, 2024 06:43
May the Force be with You: A tulpa creation guide by Methos
May the Force be with You
A Tulpa Creation Guide
by Methos
Twitter: @GGMethos
ggmethos@autistici.org
v2.8.1
Last Edit: 28-Sep-2017
The following work falls under the Creative Commons Attribution 4.0 International (CC BY 4.0) License. The official terms of the license can be seen here: