K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-08-21T09:17:13.402112Z K 7 svn:log V 82 Fix prototype. Also the function should return error code instead of -1 on error. END