add get_opt sample
longopt
getenv putenv
time sample
add resource sample