Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux function return

function myfunc()
{
    local  result=$1
    local  myresult='some value'
    eval $result="'$myresult'"
}

myfunc result
echo $result
Source by www.linuxjournal.com #
 
PREVIOUS NEXT
Tagged: #linux #function #return
ADD COMMENT
Topic
Name
8+3 =