C 語言中的 sscanf 之用法
  char label[100], tail[100];
  sscanf("label: LDI R1, [R2+3]", "%[^:]: %[^\0]", label, tail);
  printf("label=%s tail=%s\n", label, tail);

參考文獻

  1. sscanf函数用法详解
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License