MAINT: f2py: rewrite fortran_doc
MAINT: f2py: rewrite fortran_doc

Should not use sprintf, and certainly not with incorrect error checking
(gh-5044). Entirely rewritten for readability.

Also replaced a few sprintf calls that were just copying strings without
interpretation by the simpler and possibly faster strcpy/strcat.
(These need to be replaced by something more sensible.)

abalkin/numpy,gmcastil/numpy,dwillmer/numpy,GaZ3ll3/numpy,utke1/numpy,ahaldane/numpy,rhythmsosad/numpy,felipebetancur/numpy,endolith/numpy,cjermain/numpy,Srisai85/numpy,charris/numpy,ddasilva/numpy,leifdenby/numpy,Dapid/numpy,bringingheavendown/numpy,stuarteberg/numpy,ekalosak/numpy,hainm/numpy,Srisai85/numpy,GrimDerp/numpy,nbeaver/numpy,WarrenWeckesser/numpy,hainm/numpy,mathdd/numpy,stuarteberg/numpy,Linkid/numpy,CMartelLML/numpy,ajdawson/numpy,moreati/numpy,kiwifb/numpy,ChristopherHogan/numpy,skymanaditya1/numpy,ahaldane/numpy,pizzathief/numpy,naritta/numpy,ekalosak/numpy,dwillmer/numpy,WillieMaddox/numpy,yiakwy/numpy,mhvk/numpy,rhythmsosad/numpy,cjermain/numpy,jorisvandenbossche/numpy,ddasilva/numpy,ajdawson/numpy,skymanaditya1/numpy,abalkin/numpy,groutr/numpy,BMJHayward/numpy,mindw/numpy,ChristopherHogan/numpy,mindw/numpy,skymanaditya1/numpy,cowlicks/numpy,Eric89GXL/numpy,WarrenWeckesser/numpy,mingwpy/numpy,jonathanunderwood/numpy,skwbc/numpy,sigma-random/numpy,sonnyhu/numpy,rherault-insa/numpy,kirillzhuravlev/numpy,sinhrks/numpy,GrimDerp/numpy,brandon-rhodes/numpy,ChanderG/numpy,charris/numpy,yiakwy/numpy,GaZ3ll3/numpy,tdsmith/numpy,rudimeier/numpy,trankmichael/numpy,argriffing/numpy,MSeifert04/numpy,gfyoung/numpy,empeeu/numpy,mhvk/numpy,KaelChen/numpy,hainm/numpy,grlee77/numpy,has2k1/numpy,bmorris3/numpy,pbrod/numpy,ESSS/numpy,ajdawson/numpy,larsmans/numpy,BabeNovelty/numpy,ChanderG/numpy,pbrod/numpy,Anwesh43/numpy,numpy/numpy,BMJHayward/numpy,dato-code/numpy,jankoslavic/numpy,stuarteberg/numpy,utke1/numpy,ChanderG/numpy,bmorris3/numpy,rmcgibbo/numpy,jschueller/numpy,kirillzhuravlev/numpy,mwiebe/numpy,Linkid/numpy,felipebetancur/numpy,charris/numpy,larsmans/numpy,rgommers/numpy,mortada/numpy,njase/numpy,shoyer/numpy,chatcannon/numpy,KaelChen/numpy,sinhrks/numpy,jankoslavic/numpy,Dapid/numpy,ViralLeadership/numpy,madphysicist/numpy,kiwifb/numpy,MichaelAquilina/numpy,dwillmer/numpy,Anwesh43/numpy,SiccarPoint/numpy,shoyer/numpy,pbrod/numpy,rmcgibbo/numpy,nguyentu1602/numpy,shoyer/numpy,has2k1/numpy,MaPePeR/numpy,mattip/numpy,skwbc/numpy,Srisai85/numpy,pbrod/numpy,njase/numpy,kirillzhuravlev/numpy,rudimeier/numpy,bringingheavendown/numpy,dimasad/numpy,pdebuyl/numpy,abalkin/numpy,bringingheavendown/numpy,musically-ut/numpy,simongibbons/numpy,rhythmsosad/numpy,trankmichael/numpy,groutr/numpy,nguyentu1602/numpy,Yusa95/numpy,sigma-random/numpy,larsmans/numpy,bertrand-l/numpy,MichaelAquilina/numpy,argriffing/numpy,charris/numpy,chiffa/numpy,solarjoe/numpy,WarrenWeckesser/numpy,seberg/numpy,Srisai85/numpy,brandon-rhodes/numpy,numpy/numpy,drasmuss/numpy,dimasad/numpy,joferkington/numpy,anntzer/numpy,jorisvandenbossche/numpy,endolith/numpy,empeeu/numpy,KaelChen/numpy,ahaldane/numpy,trankmichael/numpy,skwbc/numpy,SunghanKim/numpy,MichaelAquilina/numpy,behzadnouri/numpy,seberg/numpy,mattip/numpy,githubmlai/numpy,gmcastil/numpy,jschueller/numpy,Anwesh43/numpy,seberg/numpy,pizzathief/numpy,gfyoung/numpy,ssanderson/numpy,numpy/numpy,dimasad/numpy,larsmans/numpy,cjermain/numpy,brandon-rhodes/numpy,SunghanKim/numpy,moreati/numpy,argriffing/numpy,b-carter/numpy,Anwesh43/numpy,rherault-insa/numpy,SunghanKim/numpy,nguyentu1602/numpy,mathdd/numpy,yiakwy/numpy,Eric89GXL/numpy,chatcannon/numpy,chiffa/numpy,simongibbons/numpy,cowlicks/numpy,empeeu/numpy,rmcgibbo/numpy,WillieMaddox/numpy,pyparallel/numpy,seberg/numpy,naritta/numpy,maniteja123/numpy,dwillmer/numpy,kirillzhuravlev/numpy,mindw/numpy,MaPePeR/numpy,WillieMaddox/numpy,MaPePeR/numpy,dato-code/numpy,jschueller/numpy,mwiebe/numpy,mathdd/numpy,shoyer/numpy,simongibbons/numpy,pyparallel/numpy,Linkid/numpy,BMJHayward/numpy,mingwpy/numpy,gmcastil/numpy,ajdawson/numpy,b-carter/numpy,has2k1/numpy,trankmichael/numpy,AustereCuriosity/numpy,ContinuumIO/numpy,BabeNovelty/numpy,anntzer/numpy,CMartelLML/numpy,solarjoe/numpy,dch312/numpy,madphysicist/numpy,simongibbons/numpy,ViralLeadership/numpy,WarrenWeckesser/numpy,tynn/numpy,ChanderG/numpy,anntzer/numpy,MichaelAquilina/numpy,MSeifert04/numpy,mwiebe/numpy,bmorris3/numpy,MSeifert04/numpy,sonnyhu/numpy,pyparallel/numpy,felipebetancur/numpy,MSeifert04/numpy,madphysicist/numpy,ahaldane/numpy,leifdenby/numpy,sigma-random/numpy,rherault-insa/numpy,pdebuyl/numpy,MSeifert04/numpy,drasmuss/numpy,gfyoung/numpy,musically-ut/numpy,tdsmith/numpy,tynn/numpy,ekalosak/numpy,jakirkham/numpy,sonnyhu/numpy,naritta/numpy,shoyer/numpy,mattip/numpy,grlee77/numpy,jakirkham/numpy,felipebetancur/numpy,utke1/numpy,ContinuumIO/numpy,chiffa/numpy,sinhrks/numpy,ViralLeadership/numpy,behzadnouri/numpy,dato-code/numpy,SiccarPoint/numpy,sinhrks/numpy,drasmuss/numpy,githubmlai/numpy,dch312/numpy,groutr/numpy,mortada/numpy,dato-code/numpy,rgommers/numpy,jankoslavic/numpy,joferkington/numpy,bertrand-l/numpy,cjermain/numpy,GrimDerp/numpy,maniteja123/numpy,mindw/numpy,Yusa95/numpy,Yusa95/numpy,Linkid/numpy,bertrand-l/numpy,ChristopherHogan/numpy,bmorris3/numpy,ssanderson/numpy,madphysicist/numpy,yiakwy/numpy,skymanaditya1/numpy,cowlicks/numpy,SunghanKim/numpy,pdebuyl/numpy,KaelChen/numpy,BMJHayward/numpy,AustereCuriosity/numpy,SiccarPoint/numpy,rhythmsosad/numpy,pizzathief/numpy,rgommers/numpy,CMartelLML/numpy,pizzathief/numpy,ContinuumIO/numpy,rajathkumarmp/numpy,Dapid/numpy,tacaswell/numpy,sonnyhu/numpy,dch312/numpy,moreati/numpy,jorisvandenbossche/numpy,brandon-rhodes/numpy,musically-ut/numpy,numpy/numpy,tdsmith/numpy,rajathkumarmp/numpy,kiwifb/numpy,hainm/numpy,jonathanunderwood/numpy,Yusa95/numpy,WarrenWeckesser/numpy,grlee77/numpy,mingwpy/numpy,jorisvandenbossche/numpy,rgommers/numpy,solarjoe/numpy,jakirkham/numpy,GrimDerp/numpy,SiccarPoint/numpy,tacaswell/numpy,njase/numpy,pizzathief/numpy,AustereCuriosity/numpy,musically-ut/numpy,joferkington/numpy,empeeu/numpy,anntzer/numpy,mhvk/numpy,jonathanunderwood/numpy,BabeNovelty/numpy,stuarteberg/numpy,nbeaver/numpy,tacaswell/numpy,mathdd/numpy,Eric89GXL/numpy,ESSS/numpy,jorisvandenbossche/numpy,mattip/numpy,ahaldane/numpy,tdsmith/numpy,pbrod/numpy,sigma-random/numpy,mingwpy/numpy,leifdenby/numpy,GaZ3ll3/numpy,mortada/numpy,jakirkham/numpy,dimasad/numpy,grlee77/numpy,mhvk/numpy,BabeNovelty/numpy,cowlicks/numpy,ekalosak/numpy,rudimeier/numpy,rajathkumarmp/numpy,jschueller/numpy,CMartelLML/numpy,ChristopherHogan/numpy,rudimeier/numpy,ddasilva/numpy,chatcannon/numpy,mhvk/numpy,madphysicist/numpy,simongibbons/numpy,b-carter/numpy,nguyentu1602/numpy,rmcgibbo/numpy,endolith/numpy,MaPePeR/numpy,GaZ3ll3/numpy,jankoslavic/numpy,joferkington/numpy,nbeaver/numpy,maniteja123/numpy,grlee77/numpy,githubmlai/numpy,Eric89GXL/numpy,jakirkham/numpy,rajathkumarmp/numpy,ssanderson/numpy,pdebuyl/numpy,mortada/numpy,tynn/numpy,ESSS/numpy,has2k1/numpy,naritta/numpy,dch312/numpy,endolith/numpy,githubmlai/numpy,behzadnouri/numpy