It seems like the browser you are using has JavaScript disabled. As a result, the site will not function properly. We really want you to enable it so you may experience our site as we intended it. If you have no idea what we are talking about or if you need help, visit http://www.enable-javascript.com×
This website uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Find out more on our cookie page.×

Oops, it seems like you're using an old browser that we do not fully support. If you're able to, please upgrade your browser here.×
This website uses cookies. By continuing to browse this site you are agreeing to our use of cookies. Find out more on our cookie page.×

Synopsis:

Since:

Arguments:

A pointer to a buffer where the function can store the string that it
reads.

bufsize

The size of the buffer, in bytes.

Library:

libc

Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.

This function is in libc.a, but not in libc.so
(in order to save space).

Description:

The input_line() function
gets a string of characters from the file designated by fp
and stores them in the array pointed to by buf. The
input_line() function stops reading characters when:

end-of-file is reached

a newline character is read

bufsize - 1 characters have been read.

In addition, the input_line() function buffers the last
_input_line_max lines internally. The _input_line_max
variable is defined in <stdio.h>.
You can set it before calling
input_line() for the first time; its default value is 20.
While the line is
being read, the KEY_UP and KEY_DOWN
keys can be used to move to the previous and next line respectively
in a circular buffer of previously read lines. The newline
character (\n) is replaced with the null character
on input.

Returns:

A pointer to the input line.
On end-of-file or on encountering an error reading from fp,
NULL is returned and
errno
is set.

1. Download the tools

Before you start developing, you'll need to visit the Downloads tab. Here you'll find downloads for the BlackBerry 10 Native SDK, BlackBerry 10 Device Simulator, and some other useful tools.

2. Try the sample apps

Now featuring a filter control, the Sample apps tab allows you to search for samples by name or by feature.

Select either the Core or Cascades radio buttons to display the samples relevant to you.

3. Educate yourself

The Documentation tab contains tons of examples, tutorials, and best practices to guide you along the path towards building an awesome app.

You can access all the documentation that you need in the left-hand navigation.

4. Start developing

The Reference tab is where you'll find essential details about how to use our APIs.

You can use the left-hand navigation to choose how you would like to browse the reference: by module, by topic, or alphabetically. If you have an idea of what you are looking for, start typing it in the Filter box.