Rosetta Code/Rank languages by popularity: Difference between revisions

Content added Content deleted
Line 904:
{{incorrect|C|Compiles without error but "Segmentation fault" when run. Tested on Cygwin, SuSE Linux and Arch Linux (Manjaro)}}
 
{{improve|C|This solution uses an external program '''wget''' for networking, but it could use '''Library: libcurl''' (see http://rosettacode.org/wiki/Web_scraping[[Web scraping#C]]) for example. Also this solution scrapes Special:Categories &limit 5000 which will break if the HTML style changes or the number of languages exceeds 5000. It could use the MediWiki API to get the language names and pages in a single call, in blocks of 500 until complete with no upper limit. See the Awk example. If you make an API-based version please retain the web-scrapping version in its own sub-section (following the lead of [[Rosetta_Code/Rank_languages_by_popularity#Tcl|TCL on this page]]). }}
 
Ghetto parser<lang c>#include <stdio.h>