Quick Question - Strings

John Gordon gordon at osiris.cso.uiuc.edu
Tue Dec 11 13:34:57 AEST 1990


	To assign a string to a char array after declaration:

	char my_string[80];

	(some code)
	(some more code)

	strcpy(my_string, "Now is the time for all good men...");


---
John Gordon
Internet: gordon at osiris.cso.uiuc.edu        #include <disclaimer.h>
          gordon at cerl.cecer.army.mil       #include <clever_saying.h>



More information about the Comp.lang.c mailing list