I would like to get a list of the wireless networks available. Ideally this would be via some C call, but I don't mind if I have to kludge it with a system call. Even better if the required C call or program doesn't require some exotic 3rd party package.
The internet seems to suggest I use sudo iwlist <interface> scan
which does seem to do the trick from the command line, but I'd rather not require root permissions. I only want to see the basics, not change anything.