Skip to content

Instantly share code, notes, and snippets.

Avatar
🇨🇴

Santiago Aguilar Hernández sant123

🇨🇴
  • Gorilla Logic
  • Colombia
View GitHub Profile
View nanossr.tsx
export * from "https://deno.land/x/nano_jsx@v0.0.30/mod.ts";
import {
Helmet,
renderSSR as nanoRender,
} from "https://deno.land/x/nano_jsx@v0.0.30/mod.ts";
import { setup } from "https://esm.sh/twind@0.16.16";
import {
View read_input.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static char *read_stdin(void)
{
size_t cap = 4096, /* Initial capacity for the char buffer */
len = 0; /* Current offset of the buffer */
char *buffer = malloc(cap * sizeof(char));
@sant123
sant123 / readin.c
Last active Jun 17, 2020 — forked from 1995eaton/readin.c
C stdin reader example with dynamic memory allocation
View readin.c
#include <stdio.h>
#include <stdlib.h>
static char *read_stdin(void)
{
size_t cap = 4096, /* Initial capacity for the char buffer */
len = 0; /* Current offset of the buffer */
char *buffer = malloc(cap * sizeof(char));
int c;