Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in C only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
C
how to printf the results on screen without using printf?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
vnkt045
New Member
Join Date:
Jun 2013
Posts:
1
#1
how to printf the results on screen without using printf?
Jun 26 '13, 06:44 PM
how to print the result on screen without using printf in C...?
Rabbit
Recognized Expert
MVP
Join Date:
Jan 2007
Posts:
12517
#2
Jun 26 '13, 08:09 PM
Why would you need to do this?
Comment
Post
Cancel
weaknessforcats
Recognized Expert
Expert
Join Date:
Mar 2007
Posts:
9214
#3
Jun 26 '13, 08:13 PM
Most compilers come with the source code for the C library as part of the install.
You could look in there and see how printf does it.
Comment
Post
Cancel
muthuct8
New Member
Join Date:
Jul 2013
Posts:
5
#4
Jul 20 '13, 07:27 AM
convert to all data into string. and use the puts()
Comment
Post
Cancel
gaurav19
New Member
Join Date:
Jul 2013
Posts:
2
#5
Jul 20 '13, 07:36 AM
Its very interesting..
And i also want to know that. If u find it plz tell me.
But why would you need to this?
Comment
Post
Cancel
donbock
Recognized Expert
Top Contributor
Join Date:
Mar 2008
Posts:
2427
#6
Jul 22 '13, 07:26 PM
What exactly are your limitations?
OK, you can't use
printf
.
Can you use other print functions (like
putc
,
puts
, etc)?
Can you use file output functions (like
fprintf
,
fputc
,
fputs
, etc)?
Comment
Post
Cancel
ijsuhit
New Member
Join Date:
Nov 2013
Posts:
1
#7
Nov 17 '13, 06:36 AM
#include<stdio. h>
#include<string .h>
int main()
{
write(1, "Hello World", strlen("Hello World"));
return 0;
}
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment