39 DEFUN (md5sum, args, ,
41 @deftypefn {Built-in Function} {} md5sum (@var{file})\n\
42 @deftypefnx {Built-in Function} {} md5sum (@var{str}, @var{opt})\n\
43 Calculate the MD5 sum of the file @var{file}.\n\
45 If the second parameter @var{opt} exists and is true, then calculate the MD5\n\
46 sum of the string @var{str}.\n\
50 int nargin = args.
length ();
52 if (nargin != 1 && nargin != 2)
56 bool have_str =
false;
57 std::string str = args(0).string_value ();
60 have_str = args(1).bool_value ();
std::string find_data_file_in_load_path(const std::string &fcn, const std::string &file, bool require_regular_file)
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
static std::string tilde_expand(const std::string &)
std::string oct_md5(const std::string str)
octave_idx_type length(void) const
std::string oct_md5_file(const std::string file)