malloc

    char *Ptr = NULL;
        Ptr = (char *)malloc(100 * sizeof(char));

原文地址:https://www.cnblogs.com/whiteIcrow/p/4062070.html