Skip to content

Instantly share code, notes, and snippets.

View ancarda's full-sized avatar

Mark Dain ancarda

View GitHub Profile
/**
* This script implements a very simple string copy that is the same length
* or less bytes. The copied string only contains printable characters.
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>

Function Naming Conventions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

Get Methods

Covers functions matching ^get. Requirements are as follows:

  • MUST type-hint an appropriate return type, such as string or bool.
  • MUST have exactly zero parameters.