Retrieve arguments passed via ARGV in the terminal

Asked

Viewed 64 times

2

I have a make file. Inside this make file, I call this file that has it:

set -f; echo $1 | bc

I want to recover function value in C for that Makefile file. Example:

./a.out "12 + 12"

result: 24

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.