Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8767583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:51:12+00:00 2026-06-13T16:51:12+00:00

I have a program where I am printing to a file, and I would

  • 0

I have a program where I am printing to a file, and I would like to print my columns in steady columns.

You can see here by looking at the output of my file what I am trying to say

Output: http://nopaste.dk/p15072

Here is what I wrote:

int func1(int n) {
        if(n==0){return(6);}
    return ((int)log2(n));
}
char levelStrings[7] = {'L','M','H','E','F','C','X'};
fprintf(fp, "%s  %s  %d   %c    ",tString+11,log->file,log->line,levelStrings[func1(log->ssMask%64)]);

Thanks so much!

(sorry that i cannot provide the input data, as they are Hex info that I have made a parser for, and it is just too much code to paste. I hope you get the general idea of what I am trying to do.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:51:13+00:00Added an answer on June 13, 2026 at 4:51 pm

    Make changes in the following lines and it should work.

    fprintf(fp,"%8s%8s%4d%2c",tString+11,log->file,log->line,levelStrings[func1(log->ssMask%64)]);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know how to recursively print a File[]. I have made
for my small printing business i would like to have an upload tool on
I have an LPTSTR for a file path, i.e. C:\Program Files\Ahoy . I would
I tried hello world example from here and I can't see any output in
Below is the program I have for reading the .csv file and printing the
I have program, that must interact with a console program before my program can
I have program that runs fast enough. I want to see the number of
I am trying to write a python program using Python 3 I have to
I have a program that loads lines from a user file, then selects the
Ok so I'm trying to take an input text file and justify it like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.