I have a string-mask that looks something like this:
+--\
| \
| \
+---| \
+---| \
+ | \
|\ +---------------------------------+\
| \ | %d| %d| %d| %d| %d| | \
| \| %d| %d| %d| %d| %d| | |\
| | %d| %d| %d| %d| %d| | | \
|---| | | \
|---| | | /
| | %d| %d| %d| %d| %d| | | /
| /| %d| %d| %d| %d| %d| | |/
| / | %d| %d| %d| %d| %d| | /
|/ +---------------------------------+/
+ | /
+---| /
+---| /
| /
| /
+--/
I need to printf it - printf(string-mask, param1,param2,param3, etc...), but number of parameters is a huge (in real string it is about 40). Is there way to avoiding manual enumeration of parameters?
P.S. I'm using pure C.
P.S.S. params are storing in array.
printf(string-mask, param1,param2,param3, etc...)is a manual enumeration.