pcb 4.1.1
An interactive printed circuit board layout editor.

getline.c File Reference

#include <sys/types.h>
#include <stdio.h>
#include <assert.h>
#include <errno.h>
Include dependency graph for getline.c:

Go to the source code of this file.

Defines

#define MIN_CHUNK   64

Functions

char * malloc ()
char * realloc ()
int getstr (char **lineptr, size_t *n, FILE *stream, char terminator, int offset)
int getline (char **lineptr, size_t *n, FILE *stream)

Define Documentation

#define MIN_CHUNK   64

Definition at line 35 of file getline.c.

Referenced by getstr().


Function Documentation

int getline ( char **  lineptr,
size_t *  n,
FILE *  stream 
)

Definition at line 141 of file getline.c.

References getstr().

Referenced by config_file_read().

Here is the call graph for this function:

int getstr ( char **  lineptr,
size_t *  n,
FILE *  stream,
char  terminator,
int  offset 
)

Definition at line 46 of file getline.c.

References c, malloc(), MIN_CHUNK, and realloc().

Referenced by getline().

Here is the call graph for this function:

char* malloc ( )

Referenced by ActionAttributes(), ActionDJopt(), ActionImport(), ActionRenumber(), add_resource_to_menu(), addAperture(), AddIrregularObstacle(), AddLine(), AddNetlistLibToUndoList(), AddPad(), AddPin(), adjust_tree(), alloc_buf(), Backup(), bm_new(), bom_insert(), BuildObjectList(), CleanBOMString(), CleanXBOMString(), cluster_create(), ComputeCost(), Concat(), CoordsToString(), CreateAliasList(), CreateBridge(), CreateEdge(), CreateExpansionArea(), CreateRouteData(), CreateSearchEdge(), dcnpgettext_expr(), dcpgettext_expr(), define_pcb_net(), derive_default_filename(), DRCAll(), eps_make_gc(), extents_make_gc(), fill_contour(), fill_polyarea(), find_corner(), find_or_create_acc(), gcode_alloc_colors(), gcode_do_export(), gcode_fill_polygon(), gcode_finish_png(), gcode_make_gc(), getstr(), ghid_attributes(), ghid_attributes_need_rows(), ghid_dialog_print(), ghid_parse_arguments(), ghid_set_color(), gsvit_alloc_colors(), gsvit_create_netlist(), gsvit_do_export(), gsvit_fill_polygon(), gsvit_get_png_name(), gsvit_make_gc(), gsvit_xml_out(), hid_cache_color(), hid_find_flag(), hid_parse_actionstring(), hid_register_attributes(), hid_register_flags(), hid_register_hid(), hidgl_fill_polygon(), import_geometry(), InitPaths(), insert_layerpick_buttons(), insert_layerview_buttons(), InsertHoles(), LayerStringToLayerStack(), leaky_malloc(), lesstif_add_block_hook(), lesstif_add_timer(), lesstif_attribute_dialog(), lesstif_attributes_dialog(), lesstif_attributes_need_rows(), lesstif_fill_polygon(), lesstif_make_gc(), lesstif_parse_arguments(), lesstif_watch_file(), LesstifNetlistChanged(), LibraryChanged(), load_mouse_resource(), LoadBackgroundFile(), lrealpath(), make_edge_tree(), make_footprint_hash(), mtspace_create(), mtspace_create_box(), mtspace_query_rect(), myCombine(), nbcb_std_callback(), nelma_alloc_colors(), nelma_do_export(), nelma_fill_polygon(), nelma_get_png_name(), nelma_make_gc(), netlist_create(), netscore_create(), new_descriptor(), new_line(), new_pair_list(), new_rubberband_arc(), new_str_pair(), oproute_rubberband(), orthopull_1(), Parse(), parse_arguments(), parse_option_line(), pcb_author(), pcb_drc_violation_new(), pick_net(), png_do_export(), png_fill_polygon(), png_make_gc(), png_set_color(), png_set_layer(), poly_Create(), prepend_insert_node_task(), print_layer_list(), psopen(), query_one(), RD_DrawLine(), RD_DrawThermal(), RD_DrawVia(), REGISTER_FLAGS(), renumber_block(), renumber_buffer(), ReportDrills(), resalloc(), resource_create(), route_checkpoint(), routedata_create(), RouteOne(), set_gl_color_for_gc(), space_edge(), split_line(), string_insert(), tempfile_name_new(), timeout_add(), toporouter_output_init(), toporouter_serpintine_new(), usage_hid(), vector_duplicate(), watch_add(), and yyalloc().