Defines a new EDMgroup in the EDMdatabase.
EDMgroup names must be unique within one EDMdatabase. An EDMgroup name can consist of letters, digits and hyphens. The first character must be a letter. EDMgroup names are case insensitive.
The edmiCreateDatabase function defines the EDMgroup named sdai-group. The two EDMusers superuser and sdai-user will be defined as members of sdai-group.
This command is only permitted for the EDMuser named superuser.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiCreateGroup(SdaiString groupName);
Arguments:
groupName |
Specifies the name of the new EDMgroup in the EDMdatabase. The name can consist of letters, digits and hyphens. The first character must be a letter. The EDMgroup names are case insensitive. EDMgroup names must be unique in an EDMdatabase. |
Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
EdmiError rstat;
...
if (rstat = edmiCreateGroup ("merci")) {
/* Error in operation */
printf("\nError in edmiCreateGroup: %s\n",
edmiGetErrorText(rstat));
goto error;
}
...