Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <strings.h>
#include <math.h>
#define SIZE 255
int main(void)
{
char
@avoidedlife
avoidedlife / string_joiner.c
Last active December 13, 2015 19:38 — forked from sirovenmitts/string_joiner.c
Here is my take on it after you re-wrote it. Obviously followed your example on 45-47. I also enjoyed (cosmetically ) the way that you were declaring data types... implemented function for capturing strings so I can write a panic(); function later for erroneous input.
// 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>
#define SIZE 255
// Getting string input //
// 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
// 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