Posted to tcl by apn at Thu Jun 24 09:16:15 GMT 2021view raw

  1. Tcl_Obj **objs;
  2. int nobjs;
  3.  
  4. Tcl_ListObjGetElements(interp, listObj, &nObjs, &objs); (assume listObj valid list)
  5.  
  6. Assume nobjs checked > 0
  7.  
  8. Tcl_SomeFunction(objs[0], someOtherObj);
  9.  
  10. Tcl_GetString(objs[0])
  11.  
  12.  
  13.  
  14.