1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-06 08:23:50 +03:00

r8318: added a bunch more ejs calls.

getgr*()
  getpw*()
  strlower()
  strupper()
  IfaceList()
This commit is contained in:
Andrew Tridgell
2005-07-11 09:19:50 +00:00
committed by Gerald (Jerry) Carter
parent 5f079d7463
commit 1517ad490d
7 changed files with 249 additions and 4 deletions

View File

@@ -114,6 +114,18 @@ struct MprVar mprList(const char *name, const char **list)
return var;
}
/*
construct a MprVar from a string, using NULL if needed
*/
struct MprVar mprString(const char *s)
{
struct MprVar var;
if (s == NULL) {
return mprCreatePtrVar(NULL, "NULL");
}
return mprCreateStringVar(s, 1);
}
/*
construct a string MprVar from a lump of data
*/