I want to stop the \t tab after 5 spaces, How do i do that?
Sarang07
0
Newbie Poster
Recommended Answers
Jump to PostNot sure whether you can do it , but check stty manual.
Jump to PostYou could try something like below...I generally don't like the solution but it works for some situations
#include <stdio.h> #include <stdlib.h> #define t " " int main(int argc, char**argv) { fprintf(stdout, "this\tis\ta\ttest", stdout); exit(EXIT_SUCCESS); }
All 5 Replies
ithelp
757
Posting Virtuoso
Banned
gerard4143
371
Nearly a Posting Maven
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Narue
5,707
Bad Cop
Team Colleague
Sarang07
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.