dt_Handle pattern; dt_Integer slen; dt_String str; /* Read SMARTS in. */ pattern = dt_smartin(2, "Oa"); /* Optimized for matches on typical molecules. */ str = dt_smarts_opt(&slen, 2, "aO", 0); printf("The optimized SMARTS expression is %.*s.\n", slen, str);
The optimized SMARTS expression is Oa.