Skip to content

Instantly share code, notes, and snippets.

View run-dlang's full-sized avatar

Eleanor Cross run-dlang

View GitHub Profile
@run-dlang
run-dlang / main.d
Created September 28, 2023 08:24
Code shared from run.dlang.io.
// Library for creating, resizing and managing memory blocks.
import core.stdc.stdio;
import core.stdc.stdlib;
alias heap = malloc; // memory allocation function
alias heapInit = calloc; // memory allocation with initialization.
alias resizeHeap = realloc; // change allocated memory.
alias release = free; // Release memory block
@run-dlang
run-dlang / main.d
Created September 28, 2023 08:19
Code shared from run.dlang.io.
// Library for creating, resizing and managing memory blocks.
import core.stdc.stdio;
import core.stdc.stdlib;
alias heap = malloc; // memory allocation function
alias heapInit = calloc; // memory allocation with initialization.
alias resizeHeap = realloc; // change allocated memory.
alias release = free; // Release memory block
@run-dlang
run-dlang / main.d
Created September 28, 2023 08:16
Code shared from run.dlang.io.
// Library for creating, resizing and managing memory blocks.
import core.stdc.stdio;
import core.stdc.stdlib;
alias heap = malloc; // memory allocation function
alias heapInit = calloc; // memory allocation with initialization.
alias resizeHeap = realloc; // change allocated memory.
alias release = free; // Release memory block
@run-dlang
run-dlang / main.d
Created September 28, 2023 08:16
Code shared from run.dlang.io.
// Library for creating, resizing and managing memory blocks.
import core.stdc.stdio;
import core.stdc.stdlib;
alias heap = malloc; // memory allocation function
alias heapInit = calloc; // memory allocation with initialization.
alias resizeHeap = realloc; // change allocated memory.
alias release = free; // Release memory block
@run-dlang
run-dlang / main.d
Created September 28, 2023 08:03
Code shared from run.dlang.io.
// Library for creating, resizing and managing memory blocks.
import core.stdc.stdio;
import core.stdc.stdlib;
alias heap = malloc; // memory allocation function
alias heapInit = calloc; // memory allocation with initialization.
alias resizeHeap = realloc; // change allocated memory.
alias release = free; // Release memory block
@run-dlang
run-dlang / main.d
Created September 28, 2023 08:02
Code shared from run.dlang.io.
// Library for creating, resizing and managing memory blocks.
import core.stdc.stdio;
import core.stdc.stdlib;
alias heap = malloc; // memory allocation function
alias heapInit = calloc; // memory allocation with initialization.
alias resizeHeap = realloc; // change allocated memory.
alias release = free; // Release memory block
@run-dlang
run-dlang / main.d
Created September 28, 2023 06:36
Code shared from run.dlang.io.
import std;
void main()
{
  byte a =2;
  ulong b =50000000000UL;
  long  c = -10000L;
  ubyte d= 130;
 
   writeln("a =" , a);
   writeln("b =" , b);
@run-dlang
run-dlang / main.d
Created September 28, 2023 06:34
Code shared from run.dlang.io.
import std;
void main()
{
  byte a =2;
  ulong b =50000000000UL;
  long  c = -10000L;
  ubyte d= 130;
 
   writeln("a =" , a);
   writeln("b =" , b);
@run-dlang
run-dlang / main.d
Created September 28, 2023 06:34
Code shared from run.dlang.io.
import std;
void main()
{
  byte a =2;
  ulong b =50000000000UL;
  long  c = -10000L;
  ubyte d= 130;
 
   writeln("a =" , a);
   writeln("b =" , b);
@run-dlang
run-dlang / main.d
Created September 28, 2023 06:34
Code shared from run.dlang.io.
import std;
void main()
{
  byte a =2;
  ulong b =50000000000UL;
  long  c = -10000L;
  ubyte d= 130;
 
   writeln("a =" , a);
   writeln("b =" , b);