Date: 2009-10-15 06:22 am (UTC)
From: [identity profile] shure.livejournal.com
It's not re-entrant because it has a hidden static data. So every utility function called from your 'strtok' loop may break "your" data in strtok (by calling to strtok on its own).

Date: 2009-10-15 07:32 am (UTC)
From: [identity profile] secondary-tea.livejournal.com
Thanks for reminding it.
I think it would be nice is C functions were able to return arrays on stack -- seems to be very good method for strtok.

December 2025

S M T W T F S
  123 4 56
78 9 10 11 1213
1415 1617181920
21 22 23 24 2526 27
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 29th, 2025 01:18 pm
Powered by Dreamwidth Studios