I’m surprised nobody has provided the simplest answer using standard POSIX functionality:
http://www.opengroup.org/onlinepubs/9699919799/functions/wordexp.html
More Related Contents:
- What are the arguments to main() for?
- Pass arguments into C program from command line
- C default arguments
- C Programming: Forward variable argument list
- Macro to count number of arguments
- Strange warning in a C function const multidimensional-array argument
- Unspecified number of parameters in C functions – void foo()
- getopt does not parse optional arguments to parameters
- Why can’t I pass constant arrays as arguments?
- HOW I CALCULATE TIME IN C PROGRAM
- how to convert .c file to .hex file and load it on AVR microcontroller?
- Getting two errors while compiling C code on a Linux virtual Machine
- How to pass 2D array (matrix) in a function in C?
- How does concatenation of two string literals work?
- How to dynamically allocate memory space for a string and get that string from user?
- Why does GCC create a shared object instead of an executable binary according to file?
- C function calls: Understanding the “implicit int” rule
- What is guaranteed about the size of a function pointer?
- Conversion specifier of long double in C
- How to print variable addresses in C?
- Regarding ‘main(int argc, char *argv[])’ [duplicate]
- what is Segmentation fault (core dumped)? [duplicate]
- How does printf and co differentiate between float and double
- 32 bit unsigned multiply on 64 bit causing undefined behavior?
- what is the unsigned datatype?
- Implementing a HashMap in C [closed]
- Encoding int value as an IEEE-754 float (binary32)
- Declare and initialize pointer concisely (i. e. pointer to int)
- Default case in a switch condition
- How to decrypt simple XOR encryption