MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lwFreeCanvas

Function lwFreeCanvas

app/redis-6.2.6/src/lolwut.c:103–106  ·  view source on GitHub ↗

Free the canvas created by lwCreateCanvas(). */

Source from the content-addressed store, hash-verified

101
102/* Free the canvas created by lwCreateCanvas(). */
103void lwFreeCanvas(lwCanvas *canvas) {
104 zfree(canvas->pixels);
105 zfree(canvas);
106}
107
108/* Set a pixel to the specified color. Color is 0 or 1, where zero means no
109 * dot will be displayed, and 1 means dot will be displayed.

Callers 2

lolwut5CommandFunction · 0.85
lolwut6CommandFunction · 0.85

Calls 1

zfreeFunction · 0.70

Tested by

no test coverage detected