Use VxWorks symbolic to store your own stuff

xiaoxiao2021-03-06  65

Today, I flipped the book of the brother, and I mentioned the story of my own with the symbolic table. I tried: int i = 0; char C [5] = {97, 98, 99, 100, 0}; char C1 [5] ;

Myst = symtblcreate (200, true, memsyspartid); for (i = 0; i <10; i ) {c [1] = 1; SymAdd (MyST, C, C, SYM_GLOBAL | SYM_DATA, 100);} C [ 1] = 98; for (i = 0; i <10; i ) {C [1] = 1; symfindbyname (MyST, C, (char **) C1, NULL); Printf ("/ N% S / n ", & c1 [8]);

转载请注明原文地址:https://www.9cbs.com/read-110774.html

New Post(0)