GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
strsqueeze(3) FreeBSD Library Functions Manual strsqueeze(3)

#include <xtend/string.h>
-lxtend

size_t  strsqueeze(char *dest, const char *src, size_t dstsize)

dest:   Pointer to a character array of at least len dstsize, where
the possibly modified string is stored.
src:    Point to a character array containing the string to compact
dstsize: Length of the dest array

Copy string src to dest, reducing to a maximum length of dstsize if necessary by replacing the center portion of the string with "...".

The length of the original string (like strlcpy(3))

#define MAXLEN  127
char    limited_str[MAXLEN + 1],
        original_str[SOME_OTHER_LEN + 1];
strsqueeze(limited_str, original_str, MAXLEN + 1);

strlcpy(3), strlcat(3)


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.