Skip to content

Instantly share code, notes, and snippets.

View sirovenmitts's full-sized avatar
:shipit:

Kenneth Pullen sirovenmitts

:shipit:
View GitHub Profile
@sirovenmitts
sirovenmitts / string_joiner.c
Last active December 12, 2015 12:49 — forked from anonymous/gist:4773146
Brian, here is my quick take on your problem. The code works as expected, but makes some assumptions, namely: Input will be less than 255 bytes long; and, newlines (\n) and carriage returns (\r) will only be at the end of input. God help you if they are somewhere in the middle.
// ask for two strings and join the first half of the first string
// with the second half of the second string.
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#define SIZE 255
#!/bin/bash
#
# Version 0.2, for Ubuntu 13.04 (Raring)
#
# Based on Chrubuntu 34v87 script
BASE_IMAGE_FILE="http://mirrors.med.harvard.edu/ubuntu-cdimage/lubuntu/releases/13.04/release/lubuntu-13.04-preinstalled-desktop-armhf+ac100.tar.gz"
# fw_type will always be developer for Mario.
# Alex and ZGB need the developer BIOS installed though.