Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ustrzncpy(3alleg4) [debian man page]

ustrzncpy(3alleg4)						  Allegro manual						ustrzncpy(3alleg4)

NAME
ustrzncpy - Copies a string into another one, specifying size. Allegro game programming library. SYNOPSIS
#include <allegro.h> char *ustrzncpy(char *dest, int size, const char *src, int n); DESCRIPTION
This function is like ustrzcpy() except that no more than `n' characters from `src' are copied into `dest' whose length in bytes is speci- fied by `size' and which is guaranteed to be null-terminated even if `src' is bigger than `size'. If `src' is shorter than `n' characters, null characters are appended to `dest' as padding until `n' characters have been written. In any case, `dest' is guaranteed to be null-ter- minated. Note that, even for empty strings, your destination string must have at least enough bytes to store the terminating null character of the string, and your parameter `size' must reflect this. Otherwise, the debug version of Allegro will abort at an assertion, and the release version of Allegro will overrun the destination buffer. RETURN VALUE
The return value is the value of `dest'. SEE ALSO
uconvert(3alleg4), ustrzcpy(3alleg4), ustrncpy(3alleg4), exkeys(3alleg4) Allegro version 4.4.2 ustrzncpy(3alleg4)

Check Out this Related Man Page

ustrzncpy(3alleg4)						  Allegro manual						ustrzncpy(3alleg4)

NAME
ustrzncpy - Copies a string into another one, specifying size. Allegro game programming library. SYNOPSIS
#include <allegro.h> char *ustrzncpy(char *dest, int size, const char *src, int n); DESCRIPTION
This function is like ustrzcpy() except that no more than `n' characters from `src' are copied into `dest' whose length in bytes is speci- fied by `size' and which is guaranteed to be null-terminated even if `src' is bigger than `size'. If `src' is shorter than `n' characters, null characters are appended to `dest' as padding until `n' characters have been written. In any case, `dest' is guaranteed to be null-ter- minated. Note that, even for empty strings, your destination string must have at least enough bytes to store the terminating null character of the string, and your parameter `size' must reflect this. Otherwise, the debug version of Allegro will abort at an assertion, and the release version of Allegro will overrun the destination buffer. RETURN VALUE
The return value is the value of `dest'. SEE ALSO
uconvert(3alleg4), ustrzcpy(3alleg4), ustrncpy(3alleg4), exkeys(3alleg4) Allegro version 4.4.2 ustrzncpy(3alleg4)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

cp & sed error

Hi, Below is a small piece of my Korn shell script - what i am trying to do is substitute all occurrences of the word given by the ${src} parameter with the word given by the ${dest} parameter in that particular textfile. But i get the errors below... for i in `ls... (19 Replies)
Discussion started by: n8575
19 Replies

2. Shell Programming and Scripting

Count total unique destination for source

Hi, need help how to count unique destination for the source ip. The file is contains 4 number of fields. Example of the file is here src ip dest ip #of flows total bytes 192.168.6.0 88.0.33.2 12 128 192.168.6.0 88.0.33.2 1 168 192.168.6.0 ... (5 Replies)
Discussion started by: new_buddy
5 Replies

3. Programming

Python Results Converted To C Struct Header File

I created python code that produce output in the form of: moses-red-sea=1.00.03 genesis-snake=2.03 deliverance=5.0.010 I need to take this output and create a "C" header file and have it look like this: struct { char *name; char *fixed_version; } filename_versions... (7 Replies)
Discussion started by: metallica1973
7 Replies

4. UNIX for Beginners Questions & Answers

Parsing null or empty output

I am working an some if then statements for a script. I want to be able to check for alpha characters or empty out put then exit out. if ]]; echo "Serial Number Invaild" then exit 3; How do I account if the output is empty or null in this in this statement. Many thanks (6 Replies)
Discussion started by: andysensible
6 Replies