использовании
strncpy(char, "text", LENGHT)
если LENGHT будет больше чем длина текста в кавычках?
Copies the first num characters of source to destination. If the end of the source C string (which is signaled by a null-character) is found before num characters have been copied, destination is padded with zeros until a total of num characters have been written to it.
Обсуждают сегодня