Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

byte_zero(3) [debian man page]

byte_zero(3)						     Library Functions Manual						      byte_zero(3)

NAME
byte_zero - initialize a string SYNTAX
#include <byte.h> void byte_zero(char *out,size_t len); DESCRIPTION
byte_zero sets out[0], out[1], ..., out[len-1] to 0. SEE ALSO
byte_copy(3), byte_copyr(3) byte_zero(3)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Another binary manipulation thread.

As bash cannot cope with a byte value of zero inside a variable then this is a workaround. This code is a DEMO to show how to create a _string_variable_ containing all of the values of 1 to 255 as single characters and 0, (zero), as a two byte character set of \0. The real binary files are 512... (20 Replies)
Discussion started by: wisecracker
20 Replies

2. Programming

Help with djbdns code

Hi, I need help to rewrite djbdns source code to accept 1024 bytes via UDP (limit is 512) #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include "uint16.h" #include "uint32.h" #include "str.h" #include "byte.h" #include "fmt.h" #include "ip4.h"... (0 Replies)
Discussion started by: cain82
0 Replies