Ah, makes sense. Thanks! On Sunday, December 3, 2017 at 9:42:04 PM UTC-6, gmhwxi wrote: > > ssize_t is signed but size_t is unsigned. > > For instance, strptr_length returns a ssize_t because > it returns -1 when the given strptr is a null pointer. > > > On Sun, Dec 3, 2017 at 10:34 PM, aditya siram <[email protected] > <javascript:>> wrote: > >> Is there a reason that both 'size_t' and 'ssize_t' exist? For example, >> functions in 'string.sats' all take or return 'size_t a' while >> 'strptr.sats' uses 'ssize_t a'. I see they're defined differently in >> 'integer_size.sats' but since they're both indexed similarly I'm unclear as >> to why the ATS prelude functions aren't standardized on one of them. >> Thanks! >> >> -- >> You received this message because you are subscribed to the Google Groups >> "ats-lang-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/ats-lang-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ats-lang-users/4f527316-b56f-4595-bcef-ec3059bed3e3%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ats-lang-users/4f527316-b56f-4595-bcef-ec3059bed3e3%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > >
-- You received this message because you are subscribed to the Google Groups "ats-lang-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/ats-lang-users. To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/d48d26ef-7cdf-4b0b-abae-7f521fe66e8d%40googlegroups.com.
