Pinned Loading
-
-
[Bash] Dynamically expanded bash men...
[Bash] Dynamically expanded bash menu that can call any function 1#!/bin/bash
23shopt -s extglob
45SCRIPT_NAME="$(basename $0)"
-
[C] List Reverse
[C] List Reverse 1int listReverse(struct ListNode** head) {
2int node_count = 0;
3struct ListNode *tmp = NULL, *walker = *head;
45if (walker != NULL) {
-
[C] variadic free function
[C] variadic free function 1void doFree(void * allocate, ...) {
2void *target = allocate;
34va_list args;
5 -
[C] 3dArray
[C] 3dArray 1char ***char3dArray(int length, int width, int height) {
2// ret[height][width][length]
3char ***ret = (char ***) malloc(sizeof(char **) * height + sizeof(char *) * height * width + sizeof(char) * height * width * length);
45char **first_row = (char **)(ret + height);
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.