From: brz-systemd-dev@intma.in
To: 9front@9front.org
Subject: strchr definition
Date: Sun, 7 Dec 2014 00:06:28 -0500 [thread overview]
Message-ID: <d5a3dbe92fb2b39aac7a3b148d04bde3@utsuho.znet> (raw)
I seem to be finding conflicting definitions of strchr
strcat(2)
char* strchr(char *s, char c)
/sys/src/libc/port/strchr.c
char* strchr(char *s, int c)
/sys/include/libc.h:/strchr/
extern char* strchr(char*, int);
So it seems like it takes an int, rather than a char.
But referencing the 386 asm, this is seen.
/sys/src/libc/386/strchr.s:4: MOVB c+4(FP), AX
(^ Why a 16-bit register?)
Is there a reason for these seemingly divergent definitions?
next reply other threads:[~2014-12-07 5:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-07 5:06 brz-systemd-dev [this message]
2014-12-07 5:46 ` [9front] " Iruatã Souza
2014-12-07 13:25 ` cinap_lenrek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d5a3dbe92fb2b39aac7a3b148d04bde3@utsuho.znet \
--to=brz-systemd-dev@intma.in \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).