Question

Je veux analyser une liste d'options du formulaire key1=val1, key2=val2, etc (Comme les options pour mount -o). La getsubopt() La fonction semble parfaite pour cette tâche (http://www.gnu.org/s/hello/manual/libc/suboptions.html). Cependant, lorsque j'essaie de compiler mon code en utilisant GCC, j'obtiens:

warning: implicit declaration of function ‘getsubopt’

Et le programme se sépare quand je l'exécute.

Pas de solution correcte

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top