better comment and better habit

/****************************************************************
function:    main
description:   Main level driver. After daemonizing the process, a socket is opened to listen for connections on the proxy port, connections are accepted and children are spawned to handle each new connection.
arguments:    argc,argv you know what those are.
return value:  none.
calls:      parse_args, do_proxy.
globals:     reads proxy_port.
****************************************************************/
 
 
I belive a better a habit :
I think write c computer programs, you should like java name varibles and functions
example of name a function MathStringLength in a file , result that the file also should name mathStringLength
As far as I see , I concerned that when we named the file like this ,we could easy find a function.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章