0

I am working on getting a string into this function but there are already to many arguments.

char interface[10];
	if (!(in = popen("iwlist %s scan","r"))) /*Need interface string here */
	{
		/*to be added */
	}

I tried to add ",interface" after "r" but it said to many arguments. I also tried adding it in a few other places.

Thanks in advance.

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by daveoffy
0

Make the string separately using sprintf or the like.

[edit]Make sure your destination has enough room for the text you want in it.

Edited by Dave Sinkula: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.