Sha256: 73c6cb8728a65ca6a20126d8de02106c415f34a48f418b80958e0745ea987d26

Contents?: true

Size: 265 Bytes

Versions: 66

Compression:

Stored size: 265 Bytes

Contents

#include "two_fer.h"
#include <stdio.h>

#define BUFFER_SIZE (100)
#define SEQUENCE "One for %s, one for me."

void two_fer(char *buffer, const char *name)
{
   snprintf(buffer, BUFFER_SIZE, SEQUENCE,
            (buffer == NULL || name == NULL) ? "you" : name);
}

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.179 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.178 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.177 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.176 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.175 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.174 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.173 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.172 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.171 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.170 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.169 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.167 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.166 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.165 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.164 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.163 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.162 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.161 tracks/c/exercises/two-fer/src/example.c
trackler-2.2.1.160 tracks/c/exercises/two-fer/src/example.c