Skip to content

Instantly share code, notes, and snippets.

View ancarda's full-sized avatar
🔒
9612 F6C7 92C9 FB40 2EA6 1AC1 A440 BD5C DE5C A1F7

Mark Dain ancarda

🔒
9612 F6C7 92C9 FB40 2EA6 1AC1 A440 BD5C DE5C A1F7
View GitHub Profile

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.
/**
* 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>