Skip to main content

Uglifyc

This python script uglifies a C file by moving the charachters in char_list to the right (10 spaces to the right of the longest line)

Installation

Install it via pip

pip install uglifyc

It can be run 2 ways:

uglifyc [input] -o [output]
uglifyc [input(s)]

This last one will output to [file]_uglified.c

And the input can also be overwritten (not reccommended)

uglifyc [input(s)] --overwrite

[input(s)] means many files can be changed

Examples

Input

#include <stdio.h>
struct student {
    char name[50];
    int roll;
    float marks;
} s;

int main() {
    printf("Enter information:\n");
    printf("Enter name: ");
    fgets(s.name, sizeof(s.name), stdin);

    printf("Enter roll number: ");
    scanf("%d", &s.roll);
    printf("Enter marks: ");
    scanf("%f", &s.marks);

    printf("Displaying Information:\n");
    printf("Name: ");
    printf("%s", s.name);
    printf("Roll number: %d\n", s.roll);
    printf("Marks: %.1f\n", s.marks);

    return 0;
}

Output

#include <stdio.h>                                 
struct student                                    {
    char name[50]                                 ;
    int roll                                      ;
    float marks                                   ;
} s                                               ;

int main(                                       ) {
    printf("Enter information:\n"                );
    printf("Enter name: "                        );
    fgets(s.name, sizeof(s.name), stdin          );

    printf("Enter roll number: "                 );
    scanf("%d", &s.roll                          );
    printf("Enter marks: "                       );
    scanf("%f", &s.marks                         );

    printf("Displaying Information:\n"           );
    printf("Name: "                              );
    printf("%s", s.name                          );
    printf("Roll number: %d\n", s.roll           );
    printf("Marks: %.1f\n", s.marks              );

    return 0                                      ;
}

Release files for uglifyc 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uglifyc 0.1.6
File Size Uploaded
uglifyc-0.1.6.tar.gz 2.8 kB Details

Release files / uglifyc-0.1.6.tar.gz

Download URL uglifyc-0.1.6.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
050c4337024a3a9f8b7bc58037459367aa3878fd8a8ab8d03fa02a2aefc392df
BLAKE2b-256 checksum
How to use checksums
b9d3321f711fec2bcc404ed52b15fb79f9842d13143afb1019ec5d6b9dc8bf4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.6 This release

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page