Bon, premier topic pour moi dans newbies, mais j'ai besoin d'aide...
Comment faire une variable expr et lui mettre dedans quelque chose d'exploitable par la ligne de commande ?
void _main () { char *name = "var"; char *name2 = name+4; HANDLE handle,handle2; char *block; unsigned short size; HSym sym = SymAdd (name2); if (sym.folder == H_NULL) {Error: ST_helpMsg ("Error...") return;} push_parse_text ("(a and b) or (c and d)") if ((handle = HS_popEStack()) == H_NULL) {Error2: SymDel (name2); goto Error;} block = HeapDeref (handle); size = *(unsigned short*)block + 2; if ((DerefSym (sym)->handle = handle2 = HeapAlloc (size)) == H_NULL) {HeapFree (handle); goto Error2;} memcpy (HeapDeref (handle2), block, size); //HS_popEstack crée un bloc en mémoire haute... }