sps.c
State writeCell(Cell *cell, char *src) {
    free(cell->str);
    cell->str = malloc((strlen(src) + 1) * sizeof(char));
    if (cell->str == NULL)
        return ERR_MEMORY;

    strcpy(cell->str, src);
    return SUCCESS;
}
// writes chars from buffer into a cell
writes chars from buffer into a cell
writes chars from buffer into a cell
State writeCell(Cell *cell, char *src) {
    free(cell->str);
    cell->str = malloc((strlen(src) + 1) * sizeof(char));
    if (cell->str == NULL)
        return ERR_MEMORY;
    strcpy(cell->str, src);
    return SUCCESS;
}
State writeCell ( Cell * cell , char * src ) { free ( cell -> str ) ; cell -> str = malloc ( ( strlen ( src ) + 1 ) * sizeof ( char ) ) ; if ( cell -> str == NULL ) return ERR_MEMORY ; strcpy ( cell -> str , src ) ; return SUCCESS ; }
writes chars from buffer into a cell
writes chars from buffer into a cell