Find Jobs
Hire Freelancers

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

$30-250 CAD

Completed
Posted over 2 years ago

$30-250 CAD

Paid on delivery
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.
Project ID: 31023563

About the project

7 proposals
Remote project
Active 3 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
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
5.0 (8 reviews)
4.4
4.4
7 freelancers are bidding on average $159 CAD for this job
User Avatar
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. I have got your project requirement enough, Please leave a message on my chat so we can discuss the project. Best Regards: Aqeel Ahmed
$250 CAD in 2 days
4.9 (16 reviews)
4.5
4.5
User Avatar
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. If you hire me, you would get perfect result and service asap. I hope work hardest for your success. Thanks & Regards
$150 CAD in 2 days
5.0 (5 reviews)
3.6
3.6
User Avatar
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 your project 100%. if you want to discuss about the project, please contact with me. thank you.
$200 CAD in 7 days
5.0 (1 review)
2.7
2.7
User Avatar
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 requirements am sure that, I can do your project in very professional way. I have some more questions ,lets discuss the details in chatbox thank you
$140 CAD in 7 days
5.0 (1 review)
2.0
2.0
User Avatar
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
4.7 (2 reviews)
1.8
1.8
User Avatar
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 of characters in txt file). But functions are different method to find number of characters (mmap, pagesize). If u hope to know about that then call me. If so then i will show it. It is very similar with your task. So i can complete your task at once. So i hope we to meet. thanks
$30 CAD in 1 day
5.0 (1 review)
1.1
1.1

About the client

Flag of CANADA
Toronto, Canada
5.0
1
Payment method verified
Member since Jul 10, 2021

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.