File: cleanup.c

package info (click to toggle)
tinyssh 20250501-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,388 kB
  • sloc: ansic: 20,245; sh: 1,582; python: 1,449; makefile: 913
file content (12 lines) | stat: -rw-r--r-- 250 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#include "cleanup.h"

void cleanup_(void *yv, long long ylen) {
    volatile char *y = (volatile char *) yv;
    while (ylen > 0) {
        *y++ = 0;
        --ylen;
    }
#ifdef __GNUC__
    __asm__ __volatile__("" : : "r"(yv) : "memory");
#endif
}