Dynamic Libraries in C language only MUST BE DONE BY WEDNESDAY AUGUST 3 2021 11:30 PM EST

You have to write a little program IN C LANGUAGE ONLY in a file called nlcnt.c and two library functions. The two library functions should have the same name my_cnt but be in two different .c files: mapping.c and reading.c. They count the (non-newline) characters in a file, accept one argument which is a null terminated string representing a file name and return an integer. The .c files will be compiled to shared objects [login to view URL] and [login to view URL] respectively and nlcnt.c should be compiled as a stand alone program called nlcnt.

Program nlcnt should accept two command line arguments. The first has to be either the word reading or the word mapping or any leading substring. The second argument will be the string argument for the function my_cnt. After parsing the command line arguments, your program should dlopen the corresponding shared object, dlsym the function, invoke it with the proper argument and print the result.

The two versions of function my_cnt both count the number of characters in the file excluding the new lines. The one in file [login to view URL] does it by mmaping the file to

memory and operating on the resulting array and the one in file [login to view URL] does it by reading multiple pagesize chuncks and counting the new-lines in them. The pagesize should be determined through a system call (sysconf).

You have to hand in the three .c files and the Makefile with at least an all target that compiles everything and a clean target that removes all the useless files.

You will be given the three .c files as starter files (nlcnt.c, mapping.c and reading.c) as well as a starterfile for the Makefile.

Skills: C Programming

See more: psd to html in bootstrap (must be done in 10hrs - 5 star review guaranteed!), psd to html in bootstrap must be done in 10hrs 5 star review guaranteed, translate 5 pages in several laguages need to be done by human only not software, You may work in the same teams as you did the in-class presentations. The project must be done in C/C++ in a Linux or Unix envi, data entry on a web page can be done by using, what must be done to invite someone for a visit to the united states?, what must be done to stop ddos attacks, if an employer sells his or her business, what must be done with lead monitoring records?, video language must be set in order to enable subtitle and closed caption contributions, it will be done by tomorrow meaning in hindi, it will be done by tomorrow meaning, why testing should not be done by developers, it will be done by today, the path to the driver executable must be set by the webdriver.gecko.driver system property, loose coupling in java programs can be done by, what must be done to an aie board in order to insert or extract audio on a dgx input or output, will be done by then, it will be done by monday, personnel hoisting platforms must be designed by, the path to the driver executable must be set by the system property maven

About the Employer:
( 1 review ) Toronto, Canada

Project ID: #31023563

Awarded to:


Hi I have a good skill in C/C++, C#, JAVA programing. I have finished many projects using C/C++, C#, JAVA. I can do it perfectly in your timeline. Let's discuss more details in private chat. Thanks.

$200 CAD in 1 day
(8 Reviews)

7 freelancers are bidding on average $159 for this job


Hello, I've complete Phd Software Engineering. I've 5-Year experience in Java development and algorithm implementation. My Core Expertise in Java - C++ - C - object-oriented - Data Structure - Swing - OpenGL - JavaFX. More

$250 CAD in 2 days
(16 Reviews)

Hello. Thanks for your job posting. I just checked your project carefully. So it is very motivated and interesting for me. It is an ideal match for my skill and experience. I have rich experience in C/C++ Programming. More

$150 CAD in 2 days
(5 Reviews)

hi, i have rich experienced of C/C++ so that i can give you the perfect result. C/C++ is my top skill and i am majoring it for long years. i have completed the several projects already so i have confident to complete More

$200 CAD in 7 days
(1 Review)

hello, I have seen that you need an experienced C++ expert for Dynamic Libraries in C language . I am a professional C++ expert with more than 10 years experience. I have carefully understood your project requirem More

$140 CAD in 7 days
(1 Review)

Hi Client. I have good skills like C, C++ and I am an expert for it. I would like to work with your project in full time and also can make your project perfectly. Please contact with me and discuss with your project

$140 CAD in 1 day
(2 Reviews)

Hi, Dear! I have done project as your task already. Your task is to display number of characters using function in .so files(defined by self). There are two .so files and every so file have one function(display number More

$30 CAD in 1 day
(1 Review)