You can modify your Origin C code as below to either calculate population or sample standard deviation by switching which MomentDenFlag declaration you wish to use:
vector vData = {3, 3, 3, 7, 4};
int nSize = vData.GetSize();
int nN = 0;
double dMean = NANUM;
double dSD = NANUM;
int MomentDenFlag = DS_SAS2_N; // For Population Standard Deviation
//int MomentDenFlag = DS_SAS1_DOF; // For Sample Standard Deviation
int nRet = ocmath_basic_summary_stats(nSize, vData, &nN, &dMean, &dSD, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, MomentDenFlag);
if (0 == nRet)
{
out_double("Mean = ", dMean);
out_double("SD = ", dSD);
}