Giter VIP home page Giter VIP logo

proj03_unix_ls's Introduction

Project #3 FT_LS, Nov 2014

#####Mimic unix's ls function.

#####Grade (105/100) (105/119)*


Goals:

  • Recode part of the ls function.
  • "l" flag. (Long format)
  • "R" flag. (Recursive folder exploration)
  • "a" flag. (Show hidden files)
  • "r" flag. (Reverse sort)
  • "t" flag. (Sort by modification time)

Recommended bonuses:

  • Handle multi-column output when "l" option is disabled
  • Print Access Control List, and extented attributes with "l" option.
  • "u" flag. (With "t": Use access time) (With "l": Show access time)
  • "f" flag. (Do not sort)
  • "g" flag. (Like "l", do not list file owner)
  • "d" flag. (Treat all path arguments as files)
  • "G" flag. (Colors)

My additions:

  • "A" flag. (Like "a", but do not list . and .. entries)
  • "B" flag. (Print numeric value for non-printable characters)
  • "C" flag. (Force multi-colum printing when stdout is not a TTY)
  • "F" flag. (Append indicator to file names "*/=@|%")
  • "b" flag. (Like "B", but use C escape codes whenever possible)
  • "h" flag. (Human readable sizes)
  • "n" flag. (Numeric uid and gid)
  • "o" flag. (Like "l", do not list group informations)
  • "1" flag. (Single-column output when "l" option is disabled)

![ft_ls](http://i.imgur.com/yABt6Jd.png)






All my C files strictly observes school's norm, it may often lead to odd or illogical syntaxes.
- [ ] Forbiden keywords: for, do, switch, goto.
- [ ] No more than 25 lines inside a function block.
- [ ] No more than 80 characters per lines.
- [ ] At most 5 functions per files.
- [ ] Only 1 declaration per line.  
- [ ] No declaration and assignation on the same line.
- [ ] At most 1 assignation per line.
- [ ] No more than 4 parameters for a function.
- [ ] No nested ternary.
- [ ] Comments alowed at the top of the file.
*
- A grade of 85 was required to validate the project.
- A maximum grade of 119 was reachable.
- Second sessions are organised for failed projects.

proj03_unix_ls's People

Stargazers

Nikki avatar

Watchers

James Cloos avatar ngoguey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.