Content deleted Content added
HeyElliott (talk | contribs) Clean up/copyedit |
m →top: HTTP to HTTPS for Cornell University |
||
(13 intermediate revisions by 9 users not shown) | |||
Line 1:
{{Short description|Memory-safe dialect of the C programming language}}
{{use dmy dates|date=August 2024}}
{{more footnotes|date=August 2015}}
{{Infobox programming language
Line 24 ⟶ 25:
| website = {{URL|http://cyclone.thelanguage.org}}
| wikibooks =
| discontinued = Yes<ref>{{cite web |title=Open Access Cyclone (programming language) Journals · OA.mg |url=https://oa.mg/journals/open-access-cyclone-programming-language-journals |website=oa.mg |access-date=30 October 2022 |archive-date=30 October 2022 |archive-url=https://web.archive.org/web/20221030192542/https://oa.mg/journals/open-access-cyclone-programming-language-journals |url-status=live }}</ref>
}}
The '''Cyclone''' [[programming language]]
Cyclone development was started as a joint project of Trevor Jim from [[AT&T Labs]] Research and [[Greg Morrisett]]'s group at [[Cornell University]] in 2001. Version 1.0 was released on May 8, 2006.<ref>{{cite web |title=Cyclone |url=
==Language features==
Line 74 ⟶ 75:
int strlen(const char *s)
{
int
if (s == NULL)
return 0;
while (s[
}
return
}
</syntaxhighlight>
This function assumes that the string being passed in is terminated by
<syntaxhighlight lang="C">
int strlen(const char ? s)
{
int
if (s == NULL)
return 0;
for (
if (*s == '\0')
return
return n;
}
|