IIRC, you should be able to do something similar to stuff = {0,0,0,0,0,0}; But check the syntax. Nevermind, I googled it: http://gd.tuwien.ac.at/languages/c/programming-bbrown/c_063.htm and http://www.tru64unix.compaq.com/docs/base_doc/DOCUMENTATION/V50_HTML/ARH9NATE/DOCU_011.HTM#initializing_structures_sec -Adam Lawrence Lile wrote: >ABC kindergarten C language question: > >I've got a structure, say it looks like this: > >struct{ >unsigned xyz:4; >unsigned uvw:4; >unsigned jkl:4; >unsigned mno:4; >... etc. etc. etc. .... >}stuff; > >Can I initialize the entire structure to zero by stating > >stuff = 0; ? > >Or do I have to clear it by some kind of loop? > >Using CCS PCM compiler with (of course) a PIC. > >-- Lawrence Lile >Sr. Project Engineer >Salton inc. Toastmaster Div. >573-446-5661 Voice >573-446-5676 Fax > >-- >http://www.piclist.com hint: The PICList is archived three different >ways. See http://www.piclist.com/#archives for details. > > > > > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.