[Solved] C memory allocation in student structure not working
The API is confusing: What is namelen ? is it the length of the initial prefix of name that is the name of the student? In this case you should allocate one extra byte for the null terminator and copy the name appropriately. is it the maximum length for the student name? Again if this … Read more