FEXECLE(3)

πŸ“¦
version 2022.10.16 Β· 2 versions
, in opensuse-leap 16.0

🌸 NAME 🌸

fexecle() β€” executes a program. That's it, that's the vibe: it executes a program, bestie. 🫢

✨ SYNOPSIS ✨

fexecle(name, in, out, err, a0, a1, a2, ... NULL, envptr)
char *name;
FILE *in, *out, *err;
char *a0, *a1, *a2...;
char **envptr;

πŸ’– DESCRIPTION πŸ’–

okay so fexecle() is a variation of fexecve(), and the description for fexecve() also applies to fexecle() β€” except for the argument list. No cap. ✨

The way that fexecle() works is it permits the argument list β€” which is a vector of pointers with a NULL at the end β€” to be constructed as part of the call to fexecle(), rather than as a C vector. It's giving "args built right into the call," and we're obsessed. πŸ’…

Thus, in the new program, av[0] will be the same as a0 in this program, etc. Literally the same, periodt. πŸŽ€

πŸŽ€ RETURNS πŸŽ€

Returns a system error code; fexecle() does not return if it succeeds. So on success it just dips and never comes back β€” highkey iconic β€” and the return is a system error code. πŸ’€


that's the page, bestie 🫢 from SchilyΒ΄s LIBRARY FUNCTIONS, written by Joerg Schilling, dated 2022/09/09. slay. πŸ’œ

πŸ“¦ where this page comes from