7 More Discussions You Might Find Interesting
1. Programming
I am trying to practice to create Makefiles. The goal is to create a makefile such that if a change is made to any of the source code files, the project can be rebuilt by typing make at the command line.
I have the following files:
ac.cc: has include ac.h and pg.h
fr.cc: has main... (8 Replies)
Discussion started by: pintu1228
8 Replies
2. What is on Your Mind?
https://www.unix.com/picture.php?albumid=112&pictureid=603 (7 Replies)
Discussion started by: Neo
7 Replies
3. UNIX for Dummies Questions & Answers
Hi to all,
I'm started to write some very simple loops in bash an i'm getting this error
-bash:
(the example is just to show when the error appeared)
the code was
x=o
while
do
echo "hello"
x++
done (5 Replies)
Discussion started by: gogodash
5 Replies
4. Linux
Hi all
I am application Programmer.
In my college(2 yrs back) i have learnt Unix i.e commads, shell scripts, Filesystem,I reffered to a book by "Sumitabha Das".
I want to learn Linux.
But i cant understand where should i start from and which book to refer to.
Most of the books these days eg.... (2 Replies)
Discussion started by: FullMetal
2 Replies
5. Shell Programming and Scripting
Prompt please where the error occurred.
text.txt obtained by ls-lah> text.txt
proc file_to_mas {name_file} {
set fileid
seek $fileid 0 start
global mas
set mas(0) 1
for {set i 0} {!} {incr i} {
gets... (2 Replies)
Discussion started by: augur_aen
2 Replies
6. Programming
#include<stdio.h>
#include<unistd.h>
#include<fcntl.h>
#include<termios.h>
#include<string.h>
#include<errno.h>
#include<sys/types.h>
#include<sys/select.h>
#include<string.h>
#include<sys/time.h>
void *thread_function(void *arg);
char quit='\0';/* this tends to terminate the read... (2 Replies)
Discussion started by: harsh_it
2 Replies
7. Programming
here is a code which sends and receives sms through a serial port. the problem is that its givin segmentation fault. it first sets the file discriptor and the initialises the modem by using AT commands. there are two threads for reading and writing . rest the code is simple you'll get it. user has... (1 Reply)
Discussion started by: harsh_it
1 Replies
LEARN ABOUT XFREE86
wcstombs
WCSTOMBS(3) Linux Programmer's Manual WCSTOMBS(3)
NAME
wcstombs - convert a wide-character string to a multibyte string
SYNOPSIS
#include <stdlib.h>
size_t wcstombs(char *dest, const wchar_t *src, size_t n);
DESCRIPTION
If dest is not NULL, the wcstombs() function converts the wide-character string src to a multibyte string starting at dest. At most n
bytes are written to dest. The sequence of characters placed in dest begins in the initial shift state. The conversion can stop for three
reasons:
1. A wide character has been encountered that can not be represented as a multibyte sequence (according to the current locale). In this
case, (size_t) -1 is returned.
2. The length limit forces a stop. In this case, the number of bytes written to dest is returned, but the shift state at this point is
lost.
3. The wide-character string has been completely converted, including the terminating null wide character (L'