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
strshellcpy(3) FreeBSD Library Functions Manual strshellcpy(3)

#include <xtend/string.h>
-lxtend

int     strshellcpy(char *dest, const char *src, size_t dest_len)

src:        String containing meta-characters
dest:       Expanded string
dest_len:   Size of destination array

strshellcpy() expands a string containing shell meta-characters, usually a shell command, as a Unix shell would do before execution. This is useful if you want to avoid spawning an unnecessary shell process, such as when using fork(2) and exec(3) directly instead of using system(3).

Currently supports: ~/: process owner's home directory $: environment variable

0 on success, -1 if expansion did not fit in dest_len

sh(1)


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.