File: explicit_bzero.c

package info (click to toggle)
tmux 3.5a-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,792 kB
  • sloc: ansic: 70,345; sh: 4,337; yacc: 1,468; awk: 339; makefile: 225
file content (15 lines) | stat: -rw-r--r-- 242 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*	$OpenBSD: explicit_bzero.c,v 1.4 2015/08/31 02:53:57 guenther Exp $ */
/*
 * Public domain.
 * Written by Matthew Dempsky.
 */

#include <string.h>

#include "compat.h"

void
explicit_bzero(void *buf, size_t len)
{
	memset(buf, 0, len);
}